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.

How to redirect all links to particular url same server domain

Discussion in 'Bind / DNS / Nameserver Issues' started by Hakas, Jul 4, 2015.

  1. Hakas

    Hakas Registered

    Joined:
    Jul 4, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    London
    cPanel Access Level:
    Website Owner
    I used redirect function in cpanel it doesnt work as i want.
    This is the code from htaccess

    RewriteCond %{HTTP_HOST} ^mywebsite\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mywebsite\.com$
    RewriteRule ^/?$ "http\:\/\/mywebsite\.com\/about\-uspage" [R=301,L]

    mywebsite.com redirects to - mywebsite.com/about-uspage -- Fine...
    But if anyone opens for example.... mywebsite.com/any-other-link then it doesnt re-directs to mywebsite.com/about-uspage which is what i want.
    Note that mywebsite is a parked domain on my cpanel and mywebsite is not my primary cpanel domain name.
     
Loading...

Share This Page