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.

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