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.

301 redirect

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

  1. gigamike

    gigamike Member

    Joined:
    Jan 14, 2008
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    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:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    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?
     
Loading...

Share This Page