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?
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?
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RewriteEngine On
RewriteRule ^([0-9]+).jpg$ /index.php?id=$1