SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 6th, 2003, 02:53 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
URL Manipulation... '/' instead of '?'

i realize my subject is horrible... but i really don't know how to explain this...

I swear i read in an article once that you could pass variables using / instead of ?...

for example:
http://www.devarticles.com/art/1/447
(referring to the addres, not the article)

basically...
http://localhost/index.php?var=what
-INTO-
http://localhost/var/what
(or however it works)

am i making sense? or am i far off my rocker?
[maybe i have the whole thing mis-understood]

Last edited by MadCowDzz : March 6th, 2003 at 02:58 PM.

Reply With Quote
  #2  
Old March 6th, 2003, 04:07 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
Link: thispage.php?a=do_it

Passing without the ? mark

Link: thispage.php/a=do_it

You can pick up the query in the $_SERVER['REQUEST_URI'] var.

-------------------------------------

Its a waste of time. It used to be descent to do before the search engines got smart, and they are really smart now (well, most of them).

The thing is that most search engines will avoid indexing pages with '?' query in it. So, a few smart people got together and said lets get rid of it and use the '/' forward slash instead so the search engines will index these pages. Well, the search engines got smarter and contrairy to popular belief, it does'nt work.

if extension
( .php .asp .html .cgi .pl .cfm .htm ect etc etc )
--
and
/
after extension
--
and
=
occurs one or more times
--
and
&
occurs one or more times
--
or
?
after extension
--

Don't index page

As you can see from the jibber jabber above, it won't work for search engine rankings on the big SE's. They are smart, really smart. Use mod_rewrite if you are looking for good rankings.

The above url is either a hard coded directory or mod_rewrite (or the alike) parsing the structure of the soft directory as a query string - or could even be a server directive that throws the url to a script for processing...
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
  #3  
Old March 6th, 2003, 05:41 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
that makes so much sense!

thanks for doing such a great job at explaining it...

Reply With Quote
  #4  
Old March 6th, 2003, 05:41 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Mad Cow, we actually have a really good article on apache and php, which shows you to how to produce nice urls, using apaches forcetype function.

URL

Just to give you an example, using htaccess files you tell it to parse the file art as a php file. Then you use some special code that gets the extra values on the end. So in the case of devarticles articles, there is a file on our server called art (without an extension) which is called when you call

URL

hope this helps a bit

Reply With Quote
  #5  
Old March 6th, 2003, 05:45 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
Quote:
using apaches forcetype function

Thats what I meant by the alike....

Didn't know you guys had an article on it, good to know...

Reply With Quote
  #6  
Old March 6th, 2003, 06:51 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Ben Rowe:
that must be the article i read before!!! That must be where I got the idea from...

thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > URL Manipulation... '/' instead of '?'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway