Forum Moderators: phranque
Options -Multiviews
RewriteEngine on
RewriteRule ^article/(.*)\.html /content/article.php?&p=$1 [L]
RewriteCond %{HTTP_HOST} ^my-domain\.co.uk [NC]
RewriteRule (.*) [my-domain.co.uk...] [R=301,L]
and this was working fine for me.
Eg. Requests for my-domain.co.uk were being redirected to www.my-domain.co.uk
I have noticed this morning though that a request for my-domain.co.uk/articles/news.html redirects to www.my-domain.co.uk/content/article.php?&p=news rather than the www.domain.co.uk/article/news.html
I dont know if this is something my host has changed or it has always been this way - any idea where I am going wrong?
It looks like it was just the order of the code.
***Shakes Head and hides in Corner***