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!

How to redirect all links to particular url same server domain

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

  1. Hakas

    Hakas Registered

    Joined:
    Jul 4, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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

  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