Forum Moderators: phranque

Message Too Old, No Replies

Is this a job for mod_rewrite or mod_alias?

         

rickbass

12:48 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



Trying to work out how to do this:

[mydomain.net...]

should read:

[mydomain.net...]

but still pull the file from the /abo/ directory.

Is this possible?

Any help anyone can give me would be greatly appreciated.

jdMorgan

1:38 pm on Apr 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This would be a job for mod_rewrite or for a server config "Alias" directive.

You must change the URL on your pages to omit /abo/ and then use mod_rewrite to add it back in.

Realize that unless you wish to add /abo/ to *all* requested URLs, you will need to make those abo-less URLs easy for mod_rewrite to identify -- You have to provide some way for mod_rewrite to identify the URLs that it should add /abo/ to. Otherwise, it will add it to all requested URLs. Or maybe that's what you want...

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim

extras

3:50 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



Sometime, symlink can be a very good alternative.
It depends on script and site setup, though.