PHP URL convertor

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
sarmadmahar
Forum Newbie
Posts: 2
Joined: Mon Apr 09, 2007 12:10 am

PHP URL convertor

Post by sarmadmahar »

is this possible

http://www.mydomain.com?a=12 i want this as http://www.mydomain.com/sarmadmahar

Thanks


Regards

Sarmad Mahar
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Post by andym01480 »

Please don't post your question twice - it annoys everyone

Your question is a server thing. If you are on an apache server you need to use a .htaccess file. Have a look at http://www.freewebmasterhelp.com/tutorials/htaccess/2 for how to do it
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Yes, it annoys me, who's just had to get rid of your duplicates.

You need mod_rewrite.
mentor
Forum Contributor
Posts: 100
Joined: Sun Mar 11, 2007 11:10 am
Location: Pakistan

Post by mentor »

I hope this will help you a lot to achieve your required results.

http://corz.org/serv/tricks/htaccess2.php
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

d11wtq wrote:Yes, it annoys me, who's just had to get rid of your duplicates.
Relax pal... it happens sometimes. Here is why:

- I write some post and when I'm ready to post I click "Submit".
- While the server was busy processing my request, something caused the server to go down (it happens so many times).
- I wait and wait and wait... but it won't post.
- So I click "Stop" in my browser (Firefox of course) and then click "Submit" again.
- This time it works and it posts my post.
- A moment later I find that it posted it twice - meaning that although it was just loading the page forever and didn't show me my post at first, at posted it.
- This is the time where I go and delete one of them very fast before d11wtq comes and kick my a** :wink:

It happened so many times, have you considered a new host?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Oren wrote:It happened so many times, have you considered a new host?
Rarely, if ever, does it happen to me. Have you considered a new ISP? :wink:
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Jcart wrote:Have you considered a new ISP? :wink:
I'm not the one who is paying the bills :D

Edit: Oh and it happens only with PHPDN. I don't have any problems with other sites (well maybe with Gmail, but other problems - it takes forever to sign out).
Post Reply