change the address

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
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

change the address

Post by amirbwb »

hello if anyone can help me by telling me how to change the text of the address ... example :

like in wordpress when u enter an to a page it doesn't show you
www.domain.com/index.php?pageid=1

but it shows you this :
www.domain.com/the_page_name/

or

www.domain.com/the_page_name.html so the $_GET form is translated as a the title of the search or the page or whatever ...

mmm who's the intelligent that will help me with thiss ??!! ;)
and i think this question is interesting for many php coder ... thank you waiting your answers ...
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: change the address

Post by oscardog »

Using .htaccess and mod_rewrite. There are a million and one tutorials on the subject, plus mod_rewrite generators for simple rewrites.
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Re: change the address

Post by amirbwb »

I don't know what i should google so can u post me some links here ... thank you
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: change the address

Post by califdon »

Use the terms oscardog showed you.
Post Reply