Wordpress htaccess or own redirect?
I am building my new site based on Wordpress. My old homepage was accessible under mydomain.com/web/index.php
I used to use a simple meta-refresh (shame) in mydomain.com/index.php, but for my new site I want to use .htaccess file.
However, I do (ab)use my site also for other webpages. So I have some photoalbums under mydomain.com/newyork and mydomain.com/montreal etc. I use this to quickly share holiday photo's with friends and collegues and remove them after a month or so. Still building a permanent photo-site.
My new wordpress homepage is under mydomain.com/new/index.php. I don't mind visitors seeing the /new/ sublevels. I changed basically everything so I don't need a link specific redirect from my old site.
But I do want:
- every request to mydomain.com to go to my wordpress site - mydomain.com/new/index.php
- every direct request to an old page e.g. mydomain.com/web/house/house1.php to go to mydomain.com/new/index.php
- but every direct request to my other webpages like mydomain.com/newyork to be unaltered.
1) Should I better use Wordpress handle the redirect/rewrite with htaccess or use a simple redirect?
2) Suppose I make my own redirect, what should my .htaccess look like?
Would this do the trick?
redirect 301 /index.php http://www.mydomain.com/new/index.php
redirect 301 /web/ http://www.mydomain.com/new/index.php
3) And if I put my own .htaccess in the root (mydomain.com) do I also need to put an index.php file in the root?
(If so, what should it contain?)
Help is appreciated, need to get my site live this weekend and I don't want it to be offline because I screw up htaccess files.