301 redirect: Moving old html site to new domain name

SpaceshipSpaceship
Watch

logish

Established Member
Impact
4
Hi, I would like to do a 301 redirect for individual pages (including index.html) to my new site. I added the following to my htaccess. They work, however when I visit my old domain site, instead of showing index.html, it shows a directory of all my pages.

Redirect 301 /index.html http://mydomainname.com
Redirect 301 /about.html http://mydomainname.com/about
Redirect 301 /test.html http://mydomainname.com/testing

How can I redirect my main site and the individual pages without conflicts?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
PHP:
Redirect 301 / h t t p:/ /mydomainname. com

I cannot post links, remove the extra spaces.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Spaceship
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back