Jump to content

htaccess redirect


Peter Knight
 Share

Recommended Posts

I have a single Processwire install with two domains pointing to it.

There's

  • in-progress.com which is the "proper domain" and won't be live for a few months
  • mini-project.com which needs to go live immediately but just point to a sub-page

Is there a way with .htaccess to know when the site is being accessed through mini-project.com, keep that address is the browser bar and redirect to mini-project.com/project-home/

To give a little context, a part of the in-progress needs to be accessible immediately and we've registered that temporary mini-project.com and pointed it at the same site.

The key here is to only do that redirect when mini-project.com is the source request. Otherwise I guess I'd use Jumplinks etc

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...