| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: At Home
Posts: 881
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | htaccess rewrite and GET variables I am trying to get variables from URLs, rewritten by htaccess and which are passed on using GET. At the moment I have: PHP Code: However, if I use this: PHP Code: Any ideas?
__________________ |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Jul 2008 Location: Wichita, KS
Posts: 287
![]() ![]() ![]() ![]() | The first one isn't working because sort and page are part of the query strings. You should only need to add [QSA] to append the query string to the second rewrite: ????: NamePros.com http://www.namepros.com/showthread.php?t=655815 Code: RewriteRule ^eating-out.php dev1.php?cat=1 [QSA] Code: RewriteRule ^eating\-out\.php$ /dev1.php?cat=1 [L,QSA]
__________________ Free Services: Alertable.com, DetectMobileBrowser.com, DropCart.com, FreeCronJobs.com, HTMLDTD.com, ImagePNG.com, NoCart.com, phpMyLogin.com, RandomTweeps.com, SearchFriendlyURLs.com For Sale: Keyword Domains / Generics See Also:: Google Voice Add-on for Firefox, Google Wave Add-on for Firefox |
| |