Hi the and greetings from Sweden!
I hope I post in the right forum section but couldn't find another place to fit my question.
I have a problem when I want to do two mod rewrite rules in my .htaccess and I can't figure it out.
The first one is simple:
maydomain.com/index.php?p=hello -> maydomain.com/hello
And the other one little trickier:
maydomain.com/pages?path=about -> maydomain.com/pages/about
I've tried several of things but I can only get my first rule to work. I probable screwed things up when I tried to use two rules I guess.
I've tried with stuff like these:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [L,QSA]
RewriteRule pages/^(.*)$ pages?path=$1 [L,QSA]
</IfModule>
Anybody have a piece of Rewrite code to show me?
Thanks / Tobias