How can I use .htaccess to shorten URLs?
February 23, 2010 3:15 PM Subscribe
I need some specific help with my .htaccess file. I'm new to the Rewrite module and can't quite figure out what I need to do to serve my pages (which live inside some nested directories) up with a nice short URL.
posted by Aquaman to Computers & Internet (8 answers total) 4 users marked this as a favorite
So I've got all my new web pages in a directory a few levels deep, i.e.:
and I'd like their URLs to display in the browser address bar as:
Also, I'd like users (and my internal links) to be able to use the short form as well. I've already got redirects set up to forward the latter to the former, but the URL reflects that (showing the long form in the address bar), and I'd like it to be nice & short, consistently. Any advice would be greatly appreciated!