Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
rewrite works but throws File Not Found error (1 viewing) (1) Guest
Post your PHP related questions or observations here. Code snippets are always welcome.
Go to bottom Post Reply Favoured: 0
TOPIC: rewrite works but throws File Not Found error
#477
Kidneybean (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
rewrite works but throws File Not Found error 4 Months, 3 Weeks ago Karma: 0  
From the perspective of someone visiting my site, the rewrite rule works fine, but meanwhile the server throws errors.

Here's the rule:

RewriteRule ^Other-Question/Ok-an-important-Olympic-Games-question/Q([a-zA-Z0-9]+)/F([0-9]+)$ Answers_Display.php?q=$1&format=$2

And here is the error: www.myserver.com [Fri Aug 15 14:39:53 2008] [error] [client 70.23.83.149] File does not exist: /usr/www/users/moi/Stage/Other-Question, referer: http://myserver.com/Other-Question/Ok-an-important-Olympic-Games-question/Qv8bkjpqgjx/F5

Any clues?
Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#478
Dewed (User)
Administrator
Posts: 250
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:rewrite works but throws File Not Found error 4 Months, 3 Weeks ago Karma: 7  
Assuming above these rules you have

Code:

RewriteEngine On RewriteBase /
, they look like they should work... Are you able to view /Answers_Display.php?q=v8bkjpqgjx&format=5 directly ? Another habit I got into.. if you might later need to pass more parameters Answers_Display.php?q=$1&format=$2&%{QUERY_STRING} not sure what this has to do with DewNewPHPLinks though .. but happy to try and help
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#479
Kidneybean (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:rewrite works but throws File Not Found error 4 Months, 3 Weeks ago Karma: 0  
Thanks so much. I already have the RewriteEngine line in there and just added RewriteBase. It still throws that same error. Any other ideas? I'm running out of them...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#480
Dewed (User)
Administrator
Posts: 250
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:rewrite works but throws File Not Found error 4 Months, 3 Weeks ago Karma: 7  
Is the .htaccess and Answers_Display.php in document root of your domain ?

Are you able to view /Answers_Display.php?q=v8bkjpqgjx&format=5 directly ?
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#482
Kidneybean (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:rewrite works but throws File Not Found error 4 Months, 3 Weeks ago Karma: 0  
Yes, my .htaccess and Answers_Display. php are both in the document root of my domain.
Plus, I can view /Answers_Display.php?q=v8bkjpqgjx&format=5 directly.

Again, any clues help! Thanks so much.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008