View Single Post
Old 01-25-2013, 02:12 PM   PM User | #1
tomharto
Regular Coder

 
Join Date: Jul 2010
Location: Sheffield
Posts: 794
Thanks: 91
Thanked 18 Times in 18 Posts
tomharto is on a distinguished road
Whats wrong with this rewriterule?

Heres my .htaccess file

Code:
RewriteEngine On
RewriteRule ^faq/([a-Z]+)/([0-9]+)$   faq.php?Title=$1&ID=$2
RewriteRule ^/?([a-z]+)$ $1.php [L]
The second line on its own works fine but I cant get the first one to.

I want it so if the url is faq/Hello/1 the page loads faq.php?Title=Hello&ID=1

What have i missed/done wrong?
tomharto is offline   Reply With Quote