Welcome to WebmasterWorld Guest from 54.161.110.186

Forum Moderators: incrediBILL

Message Too Old, No Replies

URL Redirects

Going from domain.com/topic to a specific page

     
9:13 pm on Mar 20, 2010 (gmt 0)

5+ Year Member



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]

11:39 am on Mar 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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
 

Featured Threads

Hot Threads This Week

Hot Threads This Month