Jump to content

$_GET and htaccess


ianco

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.