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

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    Hi there,

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


    When someone is viewing this URL:
    http://mydomain.com/site/index.html

    He is actually looking at the following URL
    http://mydomain.com/phpnuke/index.html


    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?

    Thanks,

    -Alon.
     
Loading...

Share This Page