Redirect to page other than index.html...

admin

Administrator
Staff member
Hi, I have a website and I'd like to know that when I type in <!-- w --><a class="postlink" href="http://www.dark-street.com">www.dark-street.com</a><!-- w --> I want it to point to <!-- w --><a class="postlink" href="http://www.dark-street.com/darkstreet/index.html">www.dark-street.com/darkstreet/index.html</a><!-- w --> INSTEAD of automatically going to <!-- w --><a class="postlink" href="http://www.dark-street.com/index.html">www.dark-street.com/index.html</a><!-- w -->. />
<br />
How is this possible?<br />
<br />
Thanks!<!--content-->you could use a 'se friendly' 301 redirect from domain.com/index<br />
<br />
<?php <br />
<br />
header("HTTP/1.1 301 Moved Permanently"); <br />
header("Location: <!-- m --><a class="postlink" href="http://www.domain.com/folder/page.html">http://www.domain.com/folder/page.html</a><!-- m -->"); <br />
exit(); <br />
<br />
?><br />
<br />
<br />
just put this in the file and rename to index.php<br />
<br />
/added<br />
<br />
seeing as it's server-side the user won't notice a thing :)<!--content-->Thanks! :D<!--content-->you're welcome :thumbup:<!--content-->
 
Back
Top