Posted by Stefan Reiter on 09/18/05 17:40
I just realized - that is only my page variable -
but what happens with the other variables I am using sometimes?
www.url.com/index.php?page=folder1/subfolder2/subfolder3/&variable1=value1&variable2=value2
u can't rewrite it to an url like
www.url.com/index.php?page=folder1/subfolder2/subfolder3/?variable1=value1&variable2=value2
Can you?
Or should it be something like
www.url.com/index.php?page=folder1/subfolder2/subfolder3/index.php?variable1=value1&variable2=value2
Or how should it be done the best way possible for search engines?
Cheers,
Stefan
ZeldorBlat schrieb:
> In the case you've described, your rewrite-rule would look something
> like this (not tested):
>
> RewriteRule ^/(*)$ /index.php?page=$1
>
> In other words, in the original URL match everything after the / and
> call it $1. Then in your re-written URL you just use the $1 to
> represent the pattern that was matched.
>
[Back to original message]
|