URL Routing in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

URL Routing in php

Post by sarbas »

Hi,

I want to display my registered users name in the browser(like personal sub doamain Example
http://www.domainname.com/sarbas) is it possible to display like this?

Hopefully waiting for your reply
Saravanan.K
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

It's pretty easy using Apache's mod_rewrite functionality.
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Post by sarbas »

Hi,

I dont know about mod_rewrite.where i can use this. how can i config this in my apache. I am using windows operating system.Can you explain

Regards
Saravanan.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

You replied 12 minutes after my post. You haven't even tried to find anything out for yourself looking on Apache's site, or searching with Google. We'll help you if you're stuck on something, but don't expect forum members to do everything for you.
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Post by sarbas »

hi,

I tried with google. But i don't know how to config it my machine. I am new to php.Thats why i am struggling.


Regards
Saravanan
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

mod_rewrite isn't PHP. You sure you looked in the right places? That are PLENTY of tutorials on enabling mod_rewrite, using it, and making the most out of it using proper regex.

I'm positive that you didn't look hard enough.
Post Reply