Link to home
Start Free TrialLog in
Avatar of svsvsv
svsvsv

asked on

RewriteRule problem

i've made a simple .htaccess
RewriteEngine on
RewriteRule [0-9].jpg$ index.php?id=$1

on apache 2.0.52, but when i access it i get 403 error...
whats wrong?
Avatar of ravenpl
ravenpl
Flag of Poland image

First try (will match 123234.jpg as well)
RewriteEngine On
RewriteRule ^([0-9]+).jpg$ /index.php?id=$1
Avatar of svsvsv
svsvsv

ASKER

no it still gives me 403 error for the whole directory (even if i access index.php directly)
Then You can't use mod_rewrite in Your .htaccess
Ask administrator(possibly Yourself) to AllowOverride FileInfo for Your WebRoot
Refer http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriteengine http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany 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