Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for Wickings

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 11:20
  • Posts: 2
  • Profile Views: 3039
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
I found the solution.

Its important you put the lines as the FIRST thing after the mod_rewrite module is loaded.
If you put it after, it will not work.


<IfModule mod_rewrite.c>

############################################
## redirect www to non-www
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ domain.com/$1 [L,R=301]
Problems with www to ...
Category: M-Turbo
emo
Hi,

After I have installed M-Turbo, there is a problem with the www to non-www htaccess redirect.
Usually I have this code in my htaccess

RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ domain.com/$1 [L,R=301]

.. but after I M-Turbo is activated, www.domain.com redirects to

domain.com/var/turbocache/default.html

instead of

domain.com

- which is of course not good. What can I do to fix this?
Problems with www to ...
Category: M-Turbo
More
User Login Empty