...

View Full Version : .htaccess Redirect



tomyknoker
04-28-2008, 08:42 AM
Hi all... I know how to do a redirect to a new URL usinga .htaccess file if I am pointing to a different server, however both domain.com and domain.com.cn are pointing to the same server, I just am wondering what I would add into my .htaccess file to get it to redirect from domain.com.cn to domain.com?

BabyJack
04-28-2008, 05:20 PM
There's a way to get around it without .htaccess... it just needs to go in the <head> part of your HTML document...
Here is the code:
<meta http-equiv="refresh" content="5;url="domain.com">

It's alot quicker and easier to access and modify. Just plop this on domain.com.cn index.html file (or php etc..)

Apostropartheid
04-28-2008, 07:13 PM
Or, even better, do it with PHP

<?php
header('Location: http://example.com/');
?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum