Ya, you're not passing the right variables to the right places.
Show us the exact RewriteRule you have, because you've obviously not structured it to match your script.
Clean URL
Started by
BlazeForc3
, Aug 11 2006 08:35 AM
23 replies to this topic
#21
Posted 16 November 2006 - 10:59 PM
#22
Posted 17 November 2006 - 01:32 PM
RewriteEngine On
RewriteRule ^(.*)/(.*).html$ index.php?news=$1&id=$2
RewriteRule ^(.*)/(.*).html$ index.php?news=$1&id=$2
#23
Posted 17 November 2006 - 04:38 PM
If you want it to match this:
http://punkbythebook.../news/1/22.html
You'll have to structure your rewrite like this.
Notice how the before hand is made. It passed 'news' to the news parameter, and '1' to the id parameter.
http://punkbythebook.../news/1/22.html
You'll have to structure your rewrite like this.
RewriteRule ^news/([0-9]+)/([0-9]+).html$ index.php?news=$1&id=$2
Notice how the before hand is made. It passed 'news' to the news parameter, and '1' to the id parameter.
Edited by Demonslay, 17 November 2006 - 04:39 PM.
#24
Posted 17 November 2006 - 04:44 PM
Oh Okay, I was always told I have to do it the way I did.
Thanks man.
Gonna keep going with this (sorry)
I get a 500 error whenever I try to connect to a database in my .htaccess file (so it would appear as though i'm not allowed to do that)...is there any way to do it?
Thanks man.
Gonna keep going with this (sorry)
I get a 500 error whenever I try to connect to a database in my .htaccess file (so it would appear as though i'm not allowed to do that)...is there any way to do it?
Edited by tgs, 17 November 2006 - 05:24 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users