Link to home
Start Free TrialLog in
Avatar of liquidblaze
liquidblaze

asked on

Rewrite all calls to a file in root

hello experts,

I'd like to know if its possible to use mod_rewrite to rewrite a call to say www.domain.com/path/subdir/ to www.domain.com/script.php?path=path/subdir/

my ideas were

RewriteRule ^/script\.php(.*)-[L]
RewriteRule ^(.*)/script\.php?path=$1

but I only get a 500.

any ideas?
Avatar of rama_krishna580
rama_krishna580
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of rama_krishna580
rama_krishna580
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of liquidblaze
liquidblaze

ASKER

yes. that will work out. sorry for the long response time. added 50 points as an excuse :)
Hi,

Nice to hear you have solved your problem,

Best of luck..
R.K