The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.htaccess redirect to new website url's

Discussion in 'General Discussion' started by DarkwaveSurfer, Jun 6, 2014.

  1. DarkwaveSurfer

    DarkwaveSurfer Registered

    Joined:
    Jun 6, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi everyone!

    I used Screaming Frog to find out my website url structure an it shows that I have 3 urls basically leading to same place. These are:

    /http://domain.tld/
    /http://www.domain.tld/
    /http://domain.tld/index.php?l=HR

    I made completely new website and would like to keep SEO from old url's. As soon I redirect I will delete complete old website. I dont have subdomains available to test first.

    So how to configure .htaccess to redirect these 3 url's to new index.html?

    Also, can I delete old language translation url's (DE, ENG, IT url's) and redirect them with 302 temporary to "under construction page" to keep SEO juice?
    I will have translation pages for other langugaes few weeks later.

    Also, do I have to delete old website to put new in function or can I just shut down the old one without deleting?

    Thanx in advance for patience to read this long post.
     
    #1 DarkwaveSurfer, Jun 6, 2014
    Last edited by a moderator: Jun 6, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may want to consult with the support or developers of the script you are using before implementing custom Mod_Rewrite rules. It's possible these rules might break the website's functionality, so it's a good idea to check with them first.

    Thank you.
     
  3. DarkwaveSurfer

    DarkwaveSurfer Registered

    Joined:
    Jun 6, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for reply.
    My plan is delete active (old) web page tomorow. Then make .htaccess redirets of old deleted url's to new one's which I would copy to public_html folder after deletion of old webpage.
    Will these two url's automaticly recognize new index.html file or should I redirect them via .htaccess?
    http://domain.tld/
    http://www.domain.tld/
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page