Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-20-2003, 02:50 PM   #1
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
Angry Apache Rewrite Not Working

Yesterday I spent hours working on some rewrite rules, today I moved them from the test server to my active server, and they magically don't work now. The rewrites originally redirected to a new server, but used the exact same rule:

RewriteEngine on

RewriteRule /blah/(.*)(/sess/([a-zA-Z0-9]{32}))? http://[DOMAIN]/bin/Health_e_store.php?Page=$1&sessionid=$3

This exact rule worked before, but now my logs are saying my scrpit Health_e_store.php doesn't exist! My whole site operates off of this site, and is functioning, it has not moved, and this script was referenced by the same rewrite last night. I am so fricken frustrated right now, and I was hoping somebody could look at this thing and slap me upside the head and show me what I missed. The Apache error_log says the following:

[Tue May 20 13:21:43 2003] [error] [client x.x.x.x] File does not exist: /bin/Health_e_store.php

The wierd thing is that the rewrite works without the script file, but the script file does exist, I have confirmed this! ARGH!!!


This exact redirect rule does work, when being accessed from another virtual server, but the redirect is to the same script and ending server.

Last edited by mikeyt_333; 05-20-2003 at 03:27 PM.
Old 05-20-2003, 05:00 PM   #2
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
Finally! It was such a stupid thing, Apache wants absolute paths, not URL's, is that written in documentation somewhere? So I fixed it for the path of the script, and voila!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Apache rewrite rules?? latino Programming 0 12-24-2004 02:09 AM
apache proxy server rewrite urls slackwarefan Linux - Software 0 10-19-2004 07:58 PM
Help me make this rewrite rule in Apache ganninu Linux - General 8 01-07-2004 08:30 AM
apache mod rewrite Robert0380 Linux - Software 5 07-31-2003 04:42 PM
Apache rewrite question CrazyToon Linux - Software 3 06-17-2003 02:00 PM

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration