I am trying to set up a list of redirects in my .htaccess to create a manually defined 'short url' list, whereby the short url domain ("short.com") is set up as an alias for the destination domain ("longdomain.com").
The problem I'm running into is that –as expected– this basic redirect from the root works fine:
Redirect /howto http://longdomain.com/tutorials/how-to-do-something Redirect /where http://longdomain.com/directions/where-is-my-car
...but is not suitable for redirecting to another domain. However, including the domain name like this:
Redirect short.com/howto http://longdomain.com/tutorials/how-to-do-something Redirect short.com/where http://longdomain.com/directions/where-is-my-car
...is not working for the domain alias. It doesn't redirect, it just loads the content (/howto and /where) from the primary domain. Content that doesn't exist there I might add, so it ends up showing nothing.
Is there any way to create a similar redirects list from a domain alias to a primary domain? Or do I need to do a Rewrite for this? And what would that look like?
EDIT - A HOPEFULLY BETTER DESCRIPTION OF THE ISSUE
I have a short and a long domain, both with the same DNS, the short domain set up as an alias for the primary.
I need to create short urls to content on the primary domain. I will do this manually as I need readable URL's, not randomly generated strings. So: short.com/snowwhite would go to long.com/stories/fairytales/snowwhiteandthesevendwarfs.