Alias / Redirect

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!

hm code gets messed up
per haps cite is better

1. <?php 2. header("Location: http://www.site.nl/"); /* Stuur de browser naar www.site.nl */ 3. exit; /* Zorgt ervoor dat de overige code niet wordt uitgevoerd */ 4. ?>

that’s messed up too, how about as-is?

<?php  

header(“Location: http://www.site.nl/some_junk”);
exit;
?>

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?

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.)

sure you can.

just put an index.php with above php code in word.domain.com … it will then redirect server-side

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. ?>

nope, just edited and switched to filtered html. still not good.