Reference to a renamed website

Post all HTML related questions here. No support.

Moderator: Project members

Post Reply
Message
Author
Historynutzo
500 Command not understood
Posts: 1
Joined: 2015-10-03 19:35

Reference to a renamed website

#1 Post by Historynutzo » 2015-10-03 19:41

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

minstudenterkorsel
500 Syntax error
Posts: 15
Joined: 2015-05-27 08:24
First name: Christian
Last name: Studenterkorsel

Re: Reference to a renamed website

#2 Post by minstudenterkorsel » 2015-11-11 11:33

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

Post Reply