Mobile app version of vmapp.org
Login or Join
Rivera981

: URL Domain Forwarding or Masking a Single Page? I have a page on my WordPress site called mysite.com/group and it has a bunch of text content. I want people to be able to access this page

@Rivera981

Posted in: #DomainForwarding #Masking #Url #UrlRewriting

I have a page on my WordPress site called mysite.com/group and it has a bunch of text content.

I want people to be able to access this page from the URL mysitegroup.org so it uses the mysite.com/group content but shows the .org URL in the address bar.

I'm a little confused how to handle this or what terminology (forwarding, masking, redirect) is used to describe what I'm trying to achieve, so it makes researching difficult because I'm not certain of the direction. Do I use forwarding with masking, as described here: Manually Forwarding or Masking Your Domain Name ?

Thanks.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rivera981

1 Comments

Sorted by latest first Latest Oldest Best

 

@Harper822

The best way to go about it is to transfer the files in the group folder at mysite.com to the document root folder at mysitegroup.org and make one of the HTML producing files by the name starting with index so that its executed. For example, make sure one file is index.htm or index.html or if you're using something like wordpress or another content management system, make sure one file is index.php.

If that is not an option then you need to create a script that redirects users from mysite.com/group to mysitegroup.org.

Easiest way to do it is to create index.php and save it in the group subfolder in the document root at mysite.com. The index.php should contain the following contents at minimum:

<?php
header("HTTP/1.1 301 Moved Permanently",true);
header("Location: mysitegroup.org ,true);
?>


Once the script is executed, users will be redirected to mysitegroup.org

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme