+ Reply to Thread
Results 1 to 3 of 3

Thread: .htaccess 301 doesn't work

  1. #1
    brigitte.sutherland32 is offline x10Hosting Member brigitte.sutherland32 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    5

    .htaccess 301 doesn't work

    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 by brigitte.sutherland32; 06-28-2011 at 05:06 AM.

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: .htaccess 301 doesn't work

    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
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    brigitte.sutherland32 is offline x10Hosting Member brigitte.sutherland32 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    5

    Re: .htaccess 301 doesn't work

    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 by brigitte.sutherland32; 06-28-2011 at 12:28 PM.

+ Reply to Thread

Similar Threads

  1. .htaccess and ModRewrite : how to get it work
    By tryma in forum Free Hosting
    Replies: 4
    Last Post: 04-13-2011, 12:30 PM
  2. hello htaccess. not work
    By toiraq156 in forum Free Hosting
    Replies: 3
    Last Post: 10-23-2010, 11:01 AM
  3. cgi doesn't work
    By jjsauler59 in forum Free Hosting
    Replies: 3
    Last Post: 10-10-2010, 05:31 PM
  4. php_value in .htaccess - does it work for you?
    By misson in forum Free Hosting
    Replies: 5
    Last Post: 10-15-2009, 09:33 PM
  5. Replies: 0
    Last Post: 09-01-2007, 05:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers