SMF Support > Server Performance and Configuration
Non WWW to WWW
Luka Paunović:
Hi...
I have this problem.
BIG PROBLEM.
It making me duplicated content.
I have this code in my htaccess
--- Code: ---RewriteEngine on
RewriteCond %{HTTP_HOST} ^internetfazoni.com$
RewriteRule ^/?$ "http\:\/\/www\.internetfazoni\.com\/" [R=301,L]
--- End code ---
http://internetfazoni.com/index.php (redirection to www works)
http://internetfazoni.com/it-vesti/ (redirection to www on boards work)
http://internetfazoni.com/it-vesti/vip-poklanja-samsung-smart-tv/ REDIRECTION TO WWW FROM TOPICS DO NOT WORK!
That is my problem.
Help me please :(
The problem is not in the pretty url mod, because problem is same and without it (when i turn it off)
Luka Paunović:
No one knows?!
novill:
Try this.
--- Code: ---RewriteEngine on
rewritecond %{http_host} ^internetfazoni.com [nc]
rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]
RewriteCond %{REQUEST_URI} ^/index\.php$
--- End code ---
Luka Paunović:
--- Quote from: novill on June 09, 2012, 09:56:59 AM ---Try this.
--- Code: ---RewriteEngine on
rewritecond %{http_host} ^internetfazoni.com [nc]
rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]
RewriteCond %{REQUEST_URI} ^/index\.php$
--- End code ---
--- End quote ---
Then nothing work at all :P
Arantor:
--- Code: ---RewriteEngine on
rewritecond %{http_host} ^internetfazoni.com [nc]
rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]
--- End code ---
You don't strictly need that last RewriteCond in there.
Navigation
[0] Message Index
[#] Next page
Go to full version