I was trying to make sure everyone coming to http://website.co.uk was redirected to http://www.website.co.uk
So I read up on it and see that I needed to upload a .htaccess file with 3 lines in it.
It read:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^website\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.website.co.uk/$1 [R=301,L]
I placed it in the root of my site and it worked, redirecting to www as I wanted.
But it's also messed up everything else..!
I can't click any links, they all try to go to a html page, instead of php - All going to a "Not Found" page.
So allo I can get to is the front page of my site and that's it.
I've tried changing the .htaccess file to just "RewriteEngine On" and even tried deleting it, but with no effect, the site is still messed up.
Anyone know how (if) I can fix it?
Bookmarks