mod_rewrite problem

Status
Not open for further replies.

ace_case

Member
Messages
217
Reaction score
11
Points
18
I have 2 (nearly) identical .htaccess for my websites.

(http://freereads.x10.mx)
Code:
RewriteEngine On
RewriteRule ^story/([0-9]+) /read.php?id=$
ErrorDocument 404 /notfound.php
(http://gamersresttop.x10.mx)
Code:
RewriteEngine On
RewriteRule ^story/([0-9]+) /read.php?id=$1

When visiting http://freereads.x10.mx/story/4 it takes me to the books.php page (it is redirecting due to the id equaling nothing ("")). However when visiting http://gamersreststop.x10.mx/story/4 it outputs 4 on the page (it's a test script set to output $_GET['id']). Why are they not having the same behavior?

(I put it here since it works on one domain and not the other, and the freereads one is an addon domain.)
 

ace_case

Member
Messages
217
Reaction score
11
Points
18
I must be getting tired... just noticed it's supposed to be ID instead of id. xD so much fail. This can be closed/moved now.
 
Status
Not open for further replies.
Top