I want to force a suffix to links. Example:
www.domain.com/about-us –> www.domain.com/about-us.html and while at it, show a 301 redirect.
I have managed to force a suffix, but than I get a 404 error if a link is typed without a suffix.
How do I go about to achieve this?
I believe .htaccess files are not and have never been designed to redirect from an arbitrarily selected page to another arbitrarily selected page. I believe there are only two things you can do:
Step 1: Forget about your .htaccess page.
Step 2: Create and get full acceptance for a page you name "about-us", and then once you do have that page (which is a bit of a challenge), you want to put a "longer, let’s say 5-second refresh tag" in the <head> section of that page, so it will redirect to "about-us.html", and in the 5-second window it will show pretty much anything you put on that page, including a "301 redirect" message.
Alternative step 1: Use the .htaccess page to redirect all miscellaneous/erroneous URLs to your main page. This is the easiest part, which I’m not going to and shouldn’t explain.
Alternative step 2: Not applicable.
I’d like to force all urls from 1 domain, to go to the other domain. Here is what I mean:
www.domain.com/about-us-en.html -> www.domain.RU/about-us-en.html
How do I go about to achieve this?
Step 1: Forget about your .htaccess file. I believe .htacess files have never been designed to point to some other domain.
Step 2: Set up an identical site at domain.ru.
Step 3: Just go to the hosting company of domain.ru and ask them to "park" domain.com for you. This will force all URLs extensions of domain.com to go to the identical URL extensions of domain.ru. NOTE: Sometimes, "park" or "parking" is not the right word, because some hosting companies call it differently. In that case, just tell them you want to "point" your domain.com to your domain.ru.
Step 4: Change/redirect the name servers of domain.com to your server at domain.ru.