Jump to content
Sign in to follow this  
djp1988

RewriteRule fail

Recommended Posts

Hello, I've been playing around with my server and just noticed an older project has stopped working, I've tracked the error down to a line in my .htaccess file.

RewriteRule ^info/([0-9]+)/([0-9]+)/([0-9]+)/ getInfo.php?year=$1&month=$2&day=$3 [QSA]

This throws a Forbidden error: You don't have permission to access /site/getInfo.php on this server.The curious thing is I tried changing that line to point to a html document, and there were not errors, what in my configuration could be causing this to be wrong for php files and not html files ?

Share this post


Link to post
Share on other sites

Thats a weird one, I presume that you had the html file you tested with in the same directory as the php file, just ruling out a directory issue. Have you tried a different php file, its not a chmod issue on the php file ist it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...