Forum Moderators: phranque

Message Too Old, No Replies

Strange Non-www to www redirect.

Did my hosts change something.

         

Dayo_UK

9:24 am on Jun 20, 2006 (gmt 0)



I currently have a non-www to www redirect in place on the following lines:-

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?

Dayo_UK

9:49 am on Jun 20, 2006 (gmt 0)



Oops

It looks like it was just the order of the code.

***Shakes Head and hides in Corner***