inherit
54640
0
Jul 2, 2019 10:52:15 GMT -8
Phrate
It's been 9 years!
1,297
August 2005
ghotherkill
|
Post by Phrate on Aug 2, 2010 21:11:40 GMT -8
Note: This is not a request on how to do pretty URLs.
Okay, so I've gotten these pesky bastards down (.htaccess) and now I've run into a problem.
I want to be able to have $_GET variables still available to use after the Pretty URL.
Example:
http://example.com/user/John?var=5
I've seen it done in many places, such as Facebook, but have yet to learn how to actually do it.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Aug 3, 2010 5:08:04 GMT -8
Facebook doesn't use them anywhere as far as I know. However, there's more to it than just them being "pretty", they're actually much more SEO friendly than having the $_GET visible within the URL. As such you should include the $_GET into the .htaccess. ie: example.com/user/John?var=5becomes: example.com/user/John/var/5
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Aug 3, 2010 12:35:16 GMT -8
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Aug 3, 2010 14:31:39 GMT -8
Peter, does the "L" flag speed anything up, compared to not having it - ie if you have subsequent .htaccess rules?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Aug 4, 2010 3:22:01 GMT -8
No idea, though the reason for having it is to prevent anymore rewrites being done, so in that case I suppose it would as it wouldn't be using the rewrite engine
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Aug 5, 2010 10:57:24 GMT -8
It wouldn't have to check against other patterns, so it should speed it up. Albeit probably not noticeably. I use it just to prevent accidental errors.
|
|