Jump to content


Photo

Clean URL


  • Please log in to reply
23 replies to this topic

#21 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 16 November 2006 - 10:59 PM

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.

#22 pirateXcore

pirateXcore

    Young Padawan

  • Members
  • Pip
  • 281 posts
  • Gender:Male

Posted 17 November 2006 - 01:32 PM

RewriteEngine On

RewriteRule ^(.*)/(.*).html$ index.php?news=$1&id=$2

#23 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

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.
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 pirateXcore

pirateXcore

    Young Padawan

  • Members
  • Pip
  • 281 posts
  • Gender:Male

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?

Edited by tgs, 17 November 2006 - 05:24 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users