Reference to a renamed website
Moderator: Project members
-
- 500 Command not understood
- Posts: 1
- Joined: 2015-10-03 19:35
Reference to a renamed website
I would like to rename my website but cannot figure out how to do it. The index file is the main webpage reference, but how can I have the user jumped over to the new name? For example; the index file now goes to <domain A>. I want to change it to <domain B>. How do I go from the <domain A> index file to the new <domain B> index file?
Last edited by botg on 2015-10-03 23:01, edited 1 time in total.
Reason: Redacted potential advertisement
Reason: Redacted potential advertisement
-
- 500 Syntax error
- Posts: 15
- Joined: 2015-05-27 08:24
- First name: Christian
- Last name: Studenterkorsel
Re: Reference to a renamed website
You can do it within the .htaccess file with a 301 permanent redirect.
Code: Select all
Example:
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
# Permanent URL redirect
Redirect 301 /xxx/xxx.php http://example.com/xxx.php
Best regards
Christian Studenterkørsel
Christian Studenterkørsel