Hi all,
I would like to find out how to do something that i see regularly on websites and need advice!
In many cases when you visit a website by typing in the domain only (i.e. you will see the URL automatically change to something like (for example!).
I need to do this for a small site I am working on and would like to know how to achieve it. I am guessing it maybe related to mod_rewrites or something but I have never really used this functionality before.
I know how to redirect the user in PHP by simply including a specific php file and use the exit(); statement immediately after, but I need to be able to changes the URL also in order to populate the REQUEST_URI server variable.
Any advice would be GREATLY appreciated.
K
I would like to find out how to do something that i see regularly on websites and need advice!
In many cases when you visit a website by typing in the domain only (i.e. you will see the URL automatically change to something like (for example!).
I need to do this for a small site I am working on and would like to know how to achieve it. I am guessing it maybe related to mod_rewrites or something but I have never really used this functionality before.
I know how to redirect the user in PHP by simply including a specific php file and use the exit(); statement immediately after, but I need to be able to changes the URL also in order to populate the REQUEST_URI server variable.
Any advice would be GREATLY appreciated.
K