The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> Search Engine Optimization
|
What is a friendly url anyways?
Discuss What is a friendly url anyways? in the Search Engine Optimization forum on Dev Shed. What is a friendly url anyways? Search Engine Optimization forum discussing related topics such as Google, PageRank, Link Exchange, and Link Popularity. Improve your ranking in the Search Engines by employing good optimization techniques.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 13th, 2012, 08:29 PM
|
 |
A Change of Season
|
|
|
|
|
What is a friendly url anyways?
Hello;
A few things:
1 - Which one is more Google friendly: - http://www.howtomoveonfromabreakup.com/tips_on_how_to_move_on_from_a_breakup/things_to_do_in_order_to_move_on/
- http://www.howtomoveonfromabreakup.com/tips-on-how-to-move-on-from-a-breakup/things-to-do-in-order-to-move-on/
- http://www.howtomoveonfromabreakup.com/tipsonhowtomoveonfromabreakup/thingstodoinordertomoveon/
- http://www.howtomoveonfromabreakup.com/tips/thingstodo/
- http://www.howtomoveonfromabreakup.com/tips/things-to-do/
2 - Is this proper way of doing it?
Code:
RewriteEngine on
RewriteRule ^tips-on-how-to-move-on-from-a-breakup/([^/\.]+)/?$ index.php?tips-on-how-to-move-on-from-a-breakup=$1 [L]
Thank you
|

September 14th, 2012, 12:41 AM
|
 |
Lost in code
|
|
|
|
|
Google doesn't care a great deal what your URL looks like, but the second one is the friendliest for humans.
1) Not everyone even knows what an underscore is because it's not normally used in written text. The best way to describe it to someone is usually to tell them where it's located on the keyboard.
3) Hard to read
4) Not very descriptive
5) Not very descriptive
|

September 14th, 2012, 01:06 AM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by E-Oreo Google doesn't care a great deal what your URL looks like, but the second one is the friendliest for humans.
1) Not everyone even knows what an underscore is because it's not normally used in written text. The best way to describe it to someone is usually to tell them where it's located on the keyboard.
3) Hard to read
4) Not very descriptive
5) Not very descriptive | Thanks. I am learning the mod rewrite thing. I thought now that I am writing these rules, I might as well learn what is the best way to do so I follow a pattern.
Code:
RewriteRule ^tips-on-how-to-move-on-from-a-breakup/([^/\.]+)/?$ index.php?tips-on-how-to-move-on-from-a-breakup=$1 [L]
|

September 14th, 2012, 01:12 AM
|
 |
Lost in code
|
|
|
|
|
There are a lot of different ways to set up the rewrite rules. It mostly depends on how many rules you are going to have. If it's only a handful, or only a handful of formats, then it makes sense to just define them individually. If it dozens or more then the usual approach is to just have one rewrite rule that routes everything to a single PHP file and have that PHP file parse the URL in $_SERVER['REQUEST_URI'] and perform its own routing. That is how virtually all generic PHP frameworks operate.
|

September 14th, 2012, 01:27 AM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by E-Oreo There are a lot of different ways to set up the rewrite rules. It mostly depends on how many rules you are going to have. If it's only a handful, or only a handful of formats, then it makes sense to just define them individually. If it dozens or more then the usual approach is to just have one rewrite rule that routes everything to a single PHP file and have that PHP file parse the URL in $_SERVER['REQUEST_URI'] and perform its own routing. That is how virtually all generic PHP frameworks operate. | Hey while I got you here, I am finally doing a php -zend frame work course. Very expensive but it covers all the things I always was desperate for. Do you have any comments, or tips? Check this. Thanks
|

September 15th, 2012, 05:11 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 21
Time spent in forums: 3 h 2 m 13 sec
Reputation Power: 0
|
|
|
Url with a specified keyword placed in it considered as best url. like if http://www.howtomoveonfromabreakup.com/tips/things-to-do/ contains your keyword "Things To Do" than it will be good enough. Dates question mark dot, comma etc all are unnecessary.
|

September 15th, 2012, 07:30 PM
|
 |
CSS & JS/DOM Adept
|
|
Join Date: Jul 2004
Location: USA
|
|
|
I agree with E-Oreo. However, is such a long name for the "folder" really necessary? It's making for a rather long URL with some redundancy in the keywords.
|

September 16th, 2012, 07:18 PM
|
 |
A Change of Season
|
|
|
|
What I did I just got rid of the .php in all pages! Like this. It is understandable and human friendly. As the website is not that large, I think it does it. Do you have any comments on this?
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ %{REQUEST_FILENAME}.php [L]
Thank you.
|

September 17th, 2012, 04:51 AM
|
|
Contributing User
|
|
Join Date: Aug 2012
Posts: 27
Time spent in forums: 3 h 25 m 19 sec
Reputation Power: 0
|
|
|
The last URL I can say is the most SEO friendly URL. On the other hand a URL which is easy to read and understand by the end user and it is easy to remember is named as SEO friendly URL.
|

September 17th, 2012, 08:30 AM
|
|
Contributing User
|
|
Join Date: Sep 2012
Location: Bhubaneswar, Odisha, India
Posts: 26
Time spent in forums: 4 h 23 m 49 sec
Number of bans: 1
Reputation Power: 0
|
|
|
The second one is good for SEO friendly URL.
|

September 18th, 2012, 01:42 AM
|
|
Contributing User
|
|
Join Date: Aug 2012
Posts: 40
Time spent in forums: 8 h 47 m 10 sec
Reputation Power: 1
|
|
|
Friendly URL means a url which is more readable. Normally, people modify their url to make search engine friendly. 2 and 3 are fine as per my opinion.
|

September 18th, 2012, 01:59 AM
|
|
Permanently Banned
|
|
Join Date: Jun 2011
Posts: 58
Time spent in forums: 13 h 39 m 25 sec
Warnings Level: 10
Number of bans: 3
Reputation Power: 0
|
|
|
search engine friendly url means we should keep keyword in url but it should be not like too too big URL. we should keep and small so people can read well too and understand what is it about.
|

September 24th, 2012, 05:04 AM
|
|
Contributing User
|
|
Join Date: Aug 2012
Posts: 40
Time spent in forums: 8 h 47 m 10 sec
Reputation Power: 1
|
|
|
Yup!! I completely agree with you. Now, on CMS like wordpress as soon as you post your title of article you are free to edit it anytime and anyhow as you want. Once the article is published then that friendly url is live on internet.
|

September 24th, 2012, 01:40 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 10
Time spent in forums: 2 h 17 m 23 sec
Warnings Level: 5
Reputation Power: 0
|
|
|
I think, last url correct.mostly keyword load in folders its great advantage...but in url u can add underscore or iphen its better.
|

September 25th, 2012, 02:28 AM
|
|
Contributing User
|
|
Join Date: Aug 2012
Posts: 40
Time spent in forums: 8 h 47 m 10 sec
Reputation Power: 1
|
|
|
with hyphen and underscore the url is more readable.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|