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!

Fake URL using Rewrite, how-to question

Discussion in 'General Discussion' started by SupermanInNY, Dec 28, 2004.

  1. SupermanInNY

    SupermanInNY Well-Known Member

    Jul 19, 2003
    Likes Received:
    Trophy Points:
    Hi there,

    My user wants to have url redirect without giving his real directory:

    When someone is viewing this URL:

    He is actually looking at the following URL

    How do I accomplish this?
    In the .htaccess (in public_html) he has the following:

    RewriteEngine On

    #RewriteRule ^main.html /phpnuke/index.php
    #RewriteRule ^Main.html /phpnuke/index.php
    #RewriteRule ^main.* /phpnuke/index.php
    #RewriteRule ^Main.* /phpnuke/index.php

    RewriteRule ^/site/$ /phpnuke/$1 [L]

    RewriteRule ^gate.* /phpnuke/modules.php
    RewriteRule ^doc.* phpnuke/modules.php

    He has tried many attempts, but obviously there is a missing piece.
    On top of it,. should there be another .htaccess in a different directory to "Close" this
    Rewrite rule?



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