ukweb Posted August 5, 2009 Share Posted August 5, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.