Results 1 to 8 of 8
  1. #1

    301 .htaccess redirect question please

    my site is placed at public_html folder, ex: and I want move it to new folder so the url will be

    How I use .htaccess redirect to redirect all old urls to exactly new urls ?

    I dont want visitors get 404 page not found when visited old urls I posted on the internet .

    Thank you .

  2. #2
    Join Date
    May 2008
    Citrus Heights, CA
    stick this in root;

    RedirectMatch 301 index.html

    edit; i read this wrong. try something like this.

    RewriteEngine On
    RewriteBase /newdir/
    RewriteRule ^(.*)$$1 [L,R=301]
    Last edited by Mark Muyskens; 10-23-2009 at 04:12 PM.
    Best Regards,


  3. #3
    It doen't work, I get error:

    The page isn't redirecting properly

  4. #4
    Join Date
    May 2009
    Dominican Republic
    You can always do it from the cpanel.. all your backslinks and all the info will be redirected.

  5. #5
    So in the Cpanel I will go to Redirect area and choose 301 redirect ?

    Choose my and redirects to→ ??

    Wild Card Redirect check or not ??


  6. #6
    Join Date
    Jul 2007
    Jupiter, Florida
    use a 301 to keep the root servers following your direction
    Barak Hosting
    Shared, VPS & Dedicated Hosting - Lunatic Support is what sets us apart

  7. #7
    check your apache settings to see if the "rewrite_mod" is enabled

  8. #8
    I am using HostGator bussiness package .

Similar Threads

  1. Redirect .htaccess Question -- Please Advise
    By ZiggyHost | Chris in forum Hosting Security and Technology
    Replies: 6
    Last Post: 12-09-2006, 04:02 PM
  2. Redirect through .htaccess question
    By jdk in forum Programming Discussion
    Replies: 2
    Last Post: 06-17-2006, 05:21 PM
  3. htaccess, 301 redirect and subdomain -> question
    By 3-rx in forum Web Design and Content
    Replies: 4
    Last Post: 05-21-2006, 08:34 AM
  4. 301 redirect in htaccess question
    By in forum Programming Discussion
    Replies: 5
    Last Post: 07-06-2005, 04:43 PM
  5. Question about .htaccess redirect syntax
    By Vortex75 in forum Hosting Security and Technology
    Replies: 0
    Last Post: 06-08-2004, 05:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts