Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on
.htaccess redirect help
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

.htaccess redirect help

bikegremlinbikegremlin Member
edited August 2019 in Tutorials

Yes, I've googled, found different solutions/advice, so though to ask here. I thought it is a routine ruleset to be implemented. But posting the question on another forum (WHT) didn't provide any help. Anyway:

For WordPress websites (if that is relevant) I'd like to use .htaccess rules to enforce the following redirections:

Main domain:

All visits to either:

should be redirected to:

Including any "trailing" stuff, of course, like: to

Sub-domain (placed on a separate cPanel account if that info is important)

All visits to either:

should be redirected to:

Also including any "trailing" path additions.

Mostly harmless™

I/O Gremlin


Sign In or Register to comment.