Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule?

         

julioconce

5:16 am on Mar 25, 2005 (gmt 0)



Hi! I'm totally newby with apache so I hope dont disturb.

I have a apache with several virtualhosting, but just one scriptalias. I needed to give some especific virtualhosting a separate cgi-bin, so I've created a sub folder cgi-bin/domain1. Then, every url must be changed from "http://domain1/cgi-bin" to "http://domain1/cgi-bin/domain1".

Is there some way to avoid that , but without tooching the scriptalias?

I have read something about RewriteRule, and seemed to be usefull, but a really dont know how.

So, can you tell me if can be donde with RewriteRule, and second, where can I get some tutorial or something to learn it?

Thanks a lot.

Julio

jdMorgan

5:29 am on Mar 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Julio,

Welcome to WebmasterWorld!

Yes, it is possible to rewrite the URLs with mod_rewrite. See our forum charter [webmasterworld.com] for links to documentation on mod_rewrite. The URL Rewriting Guide contains examples to look at while studying the documentation.

Jim