Status
Not open for further replies.
11 comments
there are 10.000 posts in my wordpress website, i want to delete all files and put 1 file

so i dont know the urls, when someone come into a url on old domain it must get a message, we have a new website click to go to this post in new domain
 
Code:
[FONT=Arial, Helvetica][SIZE=2]<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">[/SIZE][/FONT]
0 is the time in seconds for the page to wait before redirecting.
 
index.php
Code:
<html>
<head>
<title><?php echo str_replace('/', '', $_SERVER["REQUEST_URI"]); ?> on our new domain!</title>

<meta http-equiv="refresh" content="5;url=http://www.!!--new domain--!!.com<?php echo $_SERVER["REQUEST_URI"]; ?>">
</head>
<body>
add some text here...
<a href="http://www.!!--new domain--!!.com<?php echo $_SERVER["REQUEST_URI"]; ?>"> go to <?php echo str_replace('/', '', $_SERVER["REQUEST_URI"]); ?></a>
</body>
</html>

.htaccess
Code:
Options +FollowSymLinks 
RewriteEngine on 
RewriteRule ^(.*)$ index.php

tested and working for root dir only

regards
 
Status
Not open for further replies.
Back
Top