Forum Moderators: phranque
Maybe this is not possible or maybe this is very basic.. Well I want to do that:
I have two dynamic pages index.php show the main categories and pages.php show the page content. (same.. root)
I want to do something like that, and of course it is not running.. (when condition is from index.php display index.php page)
RewriteCond %{QUERY_STRING} &?main_tab=([^&]+)
RewriteRule ^(.+).html$ /index.php?main_tab=$1
RewriteCond %{QUERY_STRING} &?pages=([^&]+)
RewriteRule ^(.+).html$ /pages.php?article=$1
for example
in index.php?main_tab=bags I want to see something like this:
mysite.com/bags.html
in RewriteRule ^(.+).html$ /pages.php?article=leather-bags
I want to see something like this:
mysite.com/leather-bags.html
Of course these rules should be in the same htaccess.
Thanks very much for the help...
Milan