cancel
Showing results for 
Search instead for 
Did you mean: 

301 Redirect via .htaccess

sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

301 Redirect via .htaccess

I've set up dedicated hosting for my site and have transferred it. I've set up a rewrite in .htaccess however it does not work - it seems like .htaccess does not even work? I need the redirect to work so if someone goes to www.domain.co.uk/hello.php, they get redirected to www.domain.com/hello.php
I'm using:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
Can someone confirm please
1 REPLY
sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Re: 301 Redirect via .htaccess

Sorted Smiley
Think the index.php was playing me Smiley