Rewrites for subdomains

I am toying with the idea of moving some parts of my current site to a (Apache2) subdomain.

For example, examplesite.com/MacOSX might become "MacOSX.examplesite.com"

I'm trying to think of everything I'd need to do.

I'd need to rewrite or redirect /MacOSX/* to MacOSX.examplesite.com

On the new subdomain, I'd need to redirect any relative links that are NOT /MacOSX back to the main site (or, since I'd be doing this for more than just MacOSX, to whatever subdomain they should go to).

It seems like I could do all this pretty quickly if I get all the rewrites in place in all the conf files correctly.

Am I missing anything obvious??

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct