Forum Moderators: phranque

Message Too Old, No Replies

Rewriting from fake directory to a file in the root folder

Rewriting from fake directory to file in root folder.

         

ocean_deep2

10:05 am on Sep 28, 2006 (gmt 0)

10+ Year Member



Hi,

Can anyone tell me how I can do the following:

I want to show
http://www.example.com/FakeDir/variable-Filename.htm

URL and Rewrite it
to

http://www.example.com/Correctfile.php?x=FakeDir&y=variable

This means that I want to show the user the first URL while it is actually running the script on Correctfile.php located on the root folder.

Can I do this, without creating a folder for Correctfile.php and what would be the RewriteRule for it?

Any help will be highly appreciated.

[edited by: jdMorgan at 2:31 pm (utc) on Sep. 28, 2006]
[edit reason] Example.com [/edit]

jdMorgan

12:47 am on Sep 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ocean_deep2,

Welcome to WebmasterWorld!

This thread [webmasterworld.com], in the Apache forum section of the WebmasterWorld library [webmasterworld.com], may prove helpful to you.

Please review our forum charter [webmasterworld.com] as well.

Jim

ocean_deep2

7:41 am on Sep 29, 2006 (gmt 0)

10+ Year Member



Thanks a lot :)

Problem solved!