Gift Ideas - Homeowner Loans - Debt Consolidation - Credit Cards - Home Loan

PDA

View Full Version : Rewrite Rule help


Luke Jones
Aug 14th 2007, 12:30 pm
Hello,
I'm using the following rewrite in my search engine:
RewriteRule ^news/(.*) news.php?query=$1
Instead of processing (.*) as the search query, it is processing news/(.*). So, everytime a search is done, news/searchquery gets added to the database. Only the search query should be added.
Does anyone know why this is happening, and how I can fix it?

Luke

powerspike
Aug 14th 2007, 4:46 pm
RewriteRule ^news/(.*)$ news.php?query=$1

try that

Luke Jones
Aug 14th 2007, 5:03 pm
Yes, it worked!
Thanks a lot!

powerspike
Aug 14th 2007, 7:24 pm
no worries glad it helped =)