htaccess problem.
January 11, 2004 2:51 PM
Subscribe
Will the lines
[shown inside] in the .htaccess file cause ANY url of the form www.example.com/filename to be matched and rewritten to www.example.com/m2.php?pg=filename?
The best I could come up with, which don't work, are:
RewriteEngine on
RewriteRule ^(.*)$ m2.php?pg=$1 [T=application/x-httpd-php]
RewriteEngine off
I'm a complete newby at this but am trying to get URLs that match specific keywords. A later evolution will require secondary matching like
www.example.com/category/subtopic
to
www.example.com/m2.php?pg=category&pg2=subtopic
posted by billsaysthis to computers & internet (15 comments total)
I use the following line, which works, to match /search/filename to an argument of mt-search.cgi:
RewriteRule ^blog/search/(.*) /mt/mt-search.cgi?IncludeBlogs=2&search=$1posted by Aaorn at 3:02 PM on January 11, 2004