Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How can I shorten an url and still keep the parameters? |
|
Author |
|
DebbieFigg
Joined: 22 Sep 2008 Posts: 4 Location: Bristol, UK
|
Posted: Thu 19 Feb '09 4:12 Post subject: How can I shorten an url and still keep the parameters? |
|
|
Hi,
I've been studying the Apache manuals for a while now, but I still can't figure out how I can achieve the following.
If I have an url:
http://example.com/blah/index.php?parm1
and I would like to shorten it to:
http://example.com/blah/parm1
i.e. so I don't have to specify index.php or the question mark, but I can still have the parm1 parameter passed to my PHP program.
Can anyone tell me how I can achieve this? I would need a solution that I could preferably implement in PHP, but if that's not possible, then in an .htaccess file, because I don't have access to the server's config file.
Debbie |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
DebbieFigg
Joined: 22 Sep 2008 Posts: 4 Location: Bristol, UK
|
Posted: Thu 19 Feb '09 6:21 Post subject: |
|
|
Hi glsmith,
Thank you for the suggestion. However, I was trying to avoid using a ?, but I couldn't figure out how to use the apache rewrite commands from the manual explanations and I couldn't find a way to do it using PHP either.
Any explanation of how to do it without using a ? would be very welcome.
Debbie |
|
Back to top |
|
|
|
|
|
|