These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Alias / Redirect on the new forum.
I would like to have http://.domain.com really map to http://domain.com/some_junk
My best guess is that this would go in the Alias and Redirects under Website Configuration, but I couldn't get it to work. Probably something wrong on my part. Am I in the right location for that change?
I could alternatively do it in Zoneedit, but I'd rather keep things serverside.
Thanks!
That does seem to be the appropriate location, haven't used it myself though. I usually do a php redirect as it's faster.
1. <?php
2. header("Location: http://www.site.com/some_junk"); /* Go to target */
3. exit; /* Do not execute anything below this line */
4. ?>
hm code gets messed up per haps cite is better
1.
code tags are the right way to go, but you do have to switch to "Filtered HTML" rather than Markdown, for it to get it right, I think. (But maybe even that has troubles. I haven't yet figured out how to make the link-maker not run within code blocks. Still looking into it.)
--
Check out the forum guidelines!
nope, just edited and switched to filtered html. still not good.
that's messed up too, how about as-is?
oh crud, I didnt realize that it stripped out some of my text.
I want to have http://word.domain.com/ redirect to http://domain.com/junk/. I put "word" in < > and it stripped them out.
I don't think you can do that with a php redirect can you?
sure you can.
just put an index.php with above php code in word.domain.com ... it will then redirect server-side