Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RewriteRule problem

Posted on 2006-11-16
4
Medium Priority
?
461 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:svsvsv
  • 2
4 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 17954230
First try (will match 123234.jpg as well)
RewriteEngine On
RewriteRule ^([0-9]+).jpg$ /index.php?id=$1
0
 

Author Comment

by:svsvsv
ID: 17954234
no it still gives me 403 error for the whole directory (even if i access index.php directly)
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17954306
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
0
 
LVL 27

Accepted Solution

by:
caterham_www earned 2000 total points
ID: 17954666
> it still gives me 403 error

The option FollowSymlinks is not enabled, which causes this 403. You can enable it with

Options +Followsymlinks

If you recive a 500 internal server error, changes must be made in your httpd.conf.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question