Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.htaccess
10-03-2016, 09:29 PM
Post: #1
.htaccess
Da li neko ima iskusta sa promjenom http://xxxx.com u https://www.xxxxx.com

Da li je potrebno samo ubaciti u txt.htacc....codove i upload in file manager da bi radilo ili je potrebno jos nesto?
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply Thank you
10-03-2016, 10:40 PM
Post: #2
RE: .htaccess
To je sve što treba, no putem file managera rijetko da će raditi .htaccess uploadan, moraš putem nekog ftp clienta (total commander, filezilla etc).


Quote:RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

ovako izgleda http(s) redirekcija sa non www na www.
Send this user an email Find all posts by this user
Quote this message in a reply Thank you
10-03-2016, 11:21 PM
Post: #3
RE: .htaccess
(10-03-2016 10:40 PM)otr. Wrote:  To je sve što treba, no putem file managera rijetko da će raditi .htaccess uploadan, moraš putem nekog ftp clienta (total commander, filezilla etc).


Quote:RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

ovako izgleda http(s) redirekcija sa non www na www.

Zar se ne bi trebalo ubaciti negdje u codu (yousite) ?
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply Thank you
11-03-2016, 08:32 PM
Post: #4
RE: .htaccess
Code:
%{HTTP_HOST}

definiše "yoursite" samo
Send this user an email Find all posts by this user
Quote this message in a reply Thank you
Thanks given by (1): bigli100
27-07-2016, 10:49 PM
Post: #5
RE: .htaccess
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Ubaci se na vrhu .htaccess od prvog reda.
Send this user an email Find all posts by this user
Quote this message in a reply Thank you
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  .htaccess zoki-poki 2 1,236 21-01-2017 02:08 AM
Last Post: zoki-poki

Forum Jump:


User(s) browsing this thread: 1 Guest(s)