Article's within the website URL

Reply

Join Date: Jul 2009
Posts: 24
Reputation: InsaneVr6 is an unknown quantity at this point 
Solved Threads: 1
InsaneVr6 InsaneVr6 is offline Offline
Newbie Poster

Article's within the website URL

 
0
  #1
Sep 14th, 2009
I noticed that alot of sites URL's tend to look like this:

http://www.example.com/the-name-of-t...ted-like-this/

How can I do that? I really don't think that is all manually done. If this belongs in the PHP thread sorry. I am using PHP for creating my blog and its done, but I just wanted to know how those url's are created.

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,357
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 163
almostbob's Avatar
almostbob almostbob is online now Online
Nearly a Posting Virtuoso

Re: Article's within the website URL

 
0
  #2
Sep 14th, 2009
apache mod_rewrite
and a bunch of discussions on the subject and tutorials etc "user friendly urls with mod rewrite"
its not hard as long as the
?bla=blah&otherstuff=somethingelse parameter part of the url is structured
Last edited by almostbob; Sep 14th, 2009 at 4:29 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 101
Reputation: ingeva is an unknown quantity at this point 
Solved Threads: 9
ingeva ingeva is offline Offline
Junior Poster

Re: Article's within the website URL

 
0
  #3
Sep 15th, 2009
Originally Posted by InsaneVr6 View Post
I noticed that alot of sites URL's tend to look like this:

http://www.example.com/the-name-of-t...ted-like-this/
The way I would do it is by using an error 404 error handler, and parse the URL actually used. On one of my hosts (all hosts do not allow this) I also use this method to parse subdomains, so I don't have to declare them on the host. Very convenient and flexible.
This even allows me to create new subdomains on the fly.

inge
Yes, I'm running Ubuntu. Of course.
Reply With Quote Quick reply to this message  
Reply

Tags
urlseparatedwords

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC