I am having some complications with RewriteEngine
Here is my .htaccess file:
[code]
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^([^/]+)/$ index.php?section=$1 [L]
RewriteRule ^([^/]+)/([^/]+)$ index.php?section=$1&post=$2 [L]
Basically, I want:
[url]www.myplainlife.com/rants/
to be /index.php?section=rants
and I want
[url]www.myplainlife.com/rants/Name_of_article
to be /index.php?post=Name_of_article
The way it is now, either one works or the other (if I swap the order of the rules), not both together. Also if the second rule is working, the images no longer show up on my site. Any one have any knowledge?