Forum: Ruby on Rails Naming convention and search engines

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
093fff8b24ee86a026d46b8f04ff5b87?d=identicon&s=25 rails.impaired (Guest)
on 2007-05-18 06:06
(Received via mailing list)
Hi all:

The following is an Search Engine Optimization tip that is fairly
common in most of the SEO checklists that I have read.

Hyphens - Use hyphens ( - ) and not underscores ( _ ) to separate
words in directory and file names. Most search engines parse a hyphen
like a reader would parse a space. Using underscores makes
what_would_you_do look like whatwouldyoudo to most search engines. You
should definitely separate words in your URLs.

Let's say I create a small test app.
# rails test

create a controller, edit the controller, create a template, and run
the server
# script/generate controller WebResources
# do the manual editing stuff here.
# script/server webrick

To access the page: http://localhost:3000/web_resources/index

Works fine.  I'm wondering if there is a way to reference the above
URL using hyphens to make the spiders happy??
http://localhost:3000/web-resources/index

Any thoughts??

Thanks
This topic is locked and can not be replied to.