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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.