.htaccess 301 doesn't work

Messages
5
Reaction score
0
Points
0
I am trying to redirect http://www.brigitteland.com to http://brigitteland.com as a 301 in my htaccess.

I've tried various scripts and with the x10hosting inserted code I now can't even access the non www page as it is redirecting to the www, the exact opposite of what I'm trying to do!

Anyone got the right code for this?

This is what x10 generated via CP:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.brigitteland.com$
RewriteRule ^/?$ "http\:\/\/brigitteland\.com" [R=301,L]
 
Last edited:

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Redirecting through .htaccess though is straightforward it becomes tricky if it doesnot work.
Normally a user feels why the standard codes given everywhere on websites dont work here.Its because of certain faults in copy/paste we do or the server settings..etc.
But if you do the redirect through cpanel ,which is the hosting account's caretaker, then there should not be faults.
Here is a basic tutorial.Hope this helps
If it does not ,revert back
 
Messages
5
Reaction score
0
Points
0
Thanks vv.bbcc19, I've just noticed the server can take time to update as well. Patience seems to be the answer here!

Update: It's working, yay!

Cheers,
Brigitte
 
Last edited:
Top