Welcome to WebmasterWorld Guest from 54.204.219.143

Forum Moderators: bakedjake

Message Too Old, No Replies

How do you create alias

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

New User

10+ Year Member

joined:Oct 10, 2005
posts:28
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


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)

Senior Member

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

joined:Nov 26, 2005
posts:3041
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


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.