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

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How do you create alias
michal317




msg:3164716
 9:46 am on Nov 22, 2006 (gmt 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!

 

mcavic




msg:3165459
 8:37 pm on Nov 22, 2006 (gmt 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.

jtara




msg:3165778
 4:06 am on Nov 23, 2006 (gmt 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.

mcavic




msg:3165836
 6:35 am on Nov 23, 2006 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
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