Pretty URLs problem .
Posted: Mon Dec 21, 2009 12:53 pm
Hello pplz .
I'm trying to build a new website with cmsms 1.6.6 .. and I am trying to build a new function to read some custom databases and output some info .
I installed pretty URLS (.htaccess and config modrewrite) .
So now, http://www.site.com/index.php?page=home becomes http://www.site.com/home
The problem : at some point I have to pass some vars over the url, like :
http://www.site.com/index.php?page=home ... r=somedata[/b]
and I wanna use some rewrite rules in .htaccess so the url will look like this :
http://www.site.com/home/[b]SOMEDATA[/b]
And I can not figure it out . I have tryed a lot of combinations of rules and rewrite actions none work .
In my .htaccess file there is the defaul line :
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
what does NOT work for me :
RewriteRule ^(.+)/(.+)/$ index.php?page=$1&myvar=$2 [NC,L]
Any help would be very useful ! THANKS .
I'm trying to build a new website with cmsms 1.6.6 .. and I am trying to build a new function to read some custom databases and output some info .
I installed pretty URLS (.htaccess and config modrewrite) .
So now, http://www.site.com/index.php?page=home becomes http://www.site.com/home
The problem : at some point I have to pass some vars over the url, like :
http://www.site.com/index.php?page=home ... r=somedata[/b]
and I wanna use some rewrite rules in .htaccess so the url will look like this :
http://www.site.com/home/[b]SOMEDATA[/b]
And I can not figure it out . I have tryed a lot of combinations of rules and rewrite actions none work .
In my .htaccess file there is the defaul line :
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
what does NOT work for me :
RewriteRule ^(.+)/(.+)/$ index.php?page=$1&myvar=$2 [NC,L]
Any help would be very useful ! THANKS .