Solved

RewriteRule problem

Posted on 2006-11-16
4
453 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 500 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

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…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now