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

    Jul 4, 2015
    Likes Received:
    Trophy Points:
    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] redirects to - -- Fine...
    But if anyone opens for example.... then it doesnt re-directs to which is what i want.
    Note that mywebsite is a parked domain on my cpanel and mywebsite is not my primary cpanel domain name.

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