HI, I have the following URL: http://www.website.com/articles/articles.php?topic_name=webmaster I want to rewrite as : http://www.website.com/articles/webmaster.html How can i do this?
website.com/articles/.htaccess Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-z]+)\.html$ articles.php?topic_name=$1 [L,NC]
I got it. its working. I amde mistake in([a-z]+). i have to add digits also. what is the use of L,NC. please explain. Thanks.
HI, I am using 2 rules. Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-zA-Z0-9]+)\.html$ articles.php?topic_name=$1 RewriteRule ^([a-zA-Z0-9]+)\.html$ articles_year.php?year=$1 [L,NC] It always calls the first one. it is not calling second rule.
How to write the rules for the following urls : http://www.website.com/articles/2007/ http://www.website.com/articles/2007/3/
Each one has to have something unique in the URL, like year/#.html for the second one. Post the original URLs. Check the sticky thread.