homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

URL Redirects
Going from domain.com/topic to a specific page

5+ Year Member

Msg#: 4101660 posted 9:13 pm on Mar 20, 2010 (gmt 0)

I've got a site with hundreds of pages, a couple dozen different topics, and I need an easy to create URL shortcuts to go to specific topic root-level pages.

For example:
example.com/music -> example.com/music.html

I've been using Javascript to do this for a long time by creating a sub-directory with an index page that changes the window.location to whatever page I need it to go to, but now I've cluttered up my root directory with dozens of other directories and am looking for an easier way to accomplish this. Any help would be appreciated. Thanks.

*Mods, I'm posting this in the HTML forum because I don't know what technology I need to use to achieve my goal. Feel free to move it if necessary.*

[edited by: incrediBILL at 11:03 pm (utc) on Mar 20, 2010]
[edit reason] Only use EXAMPLE.COM for sample domain names [/edit]



WebmasterWorld Senior Member 5+ Year Member

Msg#: 4101660 posted 11:39 am on Mar 22, 2010 (gmt 0)

Which Server does your website run at ? If you are running apache, mod_rewrite will easily get this done for you. Have a look at apache forum you ll find plenty of examples

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved