Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

301 redirect

Discussion in 'General Discussion' started by gigamike, Jul 17, 2014.

  1. gigamike

    gigamike Active Member

    Joined:
    Jan 14, 2008
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    51
    Guys,

    I hope you can help me, is it possible on .htaccess for 301 redirect

    Here's the list of URLs that are in use:

    http://companyname.mydomain.com/
    http://www.companyname.mydomain.com/
    http://mydomain.com/companyname
    http://www.mydomain.com/companyname

    I want to 301 redirect all these types of URLs to this format:

    http://companyname.mydomain.com/

    Any sample htaccess code?

    Thanks,

    Mike
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,563
    Likes Received:
    437
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What do you mean by sample code?

    In your cPanel > Domains > Redirects, you should be able to add these there easy enough and the system will write the htaccess for you.

    Or are you having issues with that?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice