Jump to content

My rewrites won't go to correct url!


ukweb

Recommended Posts

Hi all

 

I have the following rules in my .htaccess:

RewriteEngine on
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^ktm-offroad.route55motorcycles.com
RewriteRule (.*) http://ktm-offroad.route55motorcycles/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://ktm-offroad.route55motorcycles/ [R=301,L]
RewriteRule ^pages/([^/\.]+)$ index.php?file=$1& [L]

AddHandler php5-script .php

 

But when I try and access 'http://ktm-offroad.route55motorcycles.com' it forwards me to 'http://www.ktm-offroad.route55motorcycles.com' what have I done wrong?!

Link to comment
https://forums.phpfreaks.com/topic/168950-my-rewrites-wont-go-to-correct-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.