ianco Posted September 30, 2011 Share Posted September 30, 2011 Hi all I am nearing the end of my custom CMS build and the plan is to change www.example.com/index.php?page=Blog&Title=Some-work to www.example.com/Blog/Some-work using htaccess. Before I get around to playing with htaccess to do this I am wondering whether my $_GET[somevalue] will still work while I am trying to use the information in the address bar? Any ideas folks? Thanks Ian Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/ Share on other sites More sharing options...
Buddski Posted September 30, 2011 Share Posted September 30, 2011 Shouldn't be an issue. Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/#findComment-1274376 Share on other sites More sharing options...
ianco Posted September 30, 2011 Author Share Posted September 30, 2011 thanks Ian Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/#findComment-1274393 Share on other sites More sharing options...
ManiacDan Posted September 30, 2011 Share Posted September 30, 2011 Minor note: You should be doing this with mod_rewrite, not htaccess. Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/#findComment-1274394 Share on other sites More sharing options...
ianco Posted September 30, 2011 Author Share Posted September 30, 2011 mod_rewrite in the htaccess file? Could you elaborate? Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/#findComment-1274397 Share on other sites More sharing options...
JonnoTheDev Posted September 30, 2011 Share Posted September 30, 2011 mod_rewrite is an apache module that is loaded within the httpd.conf file allowing you to use friendly urls. Rules are effectively regular expressions (use wikipedia if you are unfamiliar with the jargon) that match a friendly style url and convert back into it's original form so your script functions correctly. If the apache configuration is set to read .htaccess files (which it most likely is) then the rewrite rules can be defined there. They can also be within your httpd.conf Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/#findComment-1274400 Share on other sites More sharing options...
ianco Posted September 30, 2011 Author Share Posted September 30, 2011 thanks very much, I'll look into it Link to comment https://forums.phpfreaks.com/topic/248176-_get-and-htaccess/#findComment-1274401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.