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?! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.