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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Nice to hear you have solved your problem,
Best of luck..
R.K
look at here..you will get some idea ..
https://www.experts-exchange.com/questions/21099150/Mod-Rewrite-when-using-a-subdomain.html
R.K