Welcome to WebmasterWorld Guest from 54.162.12.134

Forum Moderators: bakedjake

Message Too Old, No Replies

How do you create alias

     
9:46 am on Nov 22, 2006 (gmt 0)

5+ Year Member



Hi!
I have these horrible links from my CMS - index.php?something=#*$! etc.
I'd like to create alias, how do you do it? in the .htaccess?
thanks!
8:37 pm on Nov 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're running Apache, you can do this using mod_rewrite [google.com]. I recommend doing it in the httpd.conf rather than .htaccess if possible, because I suspect the performance would be a little better.
4:06 am on Nov 23, 2006 (gmt 0)

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 5+ Year Member



You will have to check the documentation for your CMS. There is no universal way to do this.

It requires TWO things:

1. mod_rewrite gets requests redirected from the "friendly names" to the actual CMS script.

2. The CMS itself has to change the way it formats internal links, so that it uses the "friendly names".

If your CMS does not support friendly names, then you cannot do this.

6:35 am on Nov 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The CMS itself has to change the way it formats internal links

Actually yeah, that's true. Otherwise the friendly names won't really get used. IMO, all CMS's should use friendly names, but I'm sure many don't have the option.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month