I saw this old post in this forum which is somewhat similar to my problem but not exactly.
[
webmasterworld.com...]
I do not have tech knowledge about mod rewrite, etc. So, I do not know how to change the mod rewrite statement mentioned in the above post to suit my requirement.
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} !^123\.45\.67\.89
RewriteCond %{REQUEST_URI} !/alternate_page\.html$
RewriteRule \.html$ /alternate_page.html [R=302,L]
The above is the mod rewrite given in the earlier mentioned post.
But, what I need is this:
I have a static site at DomainName1 with .php pages and I plan to convert this site into a wordpress site.
So, till I create the WP site in DomainName1 and create all pages, etc., I would like to shift this static site to DomainName2 with a 302 redirect with the exception of my IP.
So, how do I modify the above mod rewrite statements accordingly.
Secondly, when people visit DomainName1/Page1.php, with the mod rewrite statements, will they be automatically transferred to DomainName2/Page1.php OR do I have to also separately include "Redirect 302 DomainName1/Page1.php DomainName2/Page1.php" for each of the pages in DomainName1
I would appreciate any help on the above points.
Thanks
Cheers
Raj