Jump to content

.htaccess tweak


Guest Brivtech

Recommended Posts

Guest Brivtech

I'm trying to get a function out of .htaccess. Perhaps I'm going the wrong way about it.

If I have a CC store on a subdomain, that's great, however, if someone goes and types in www. before the subdomain, then that's a big headache.

So, through some sort of trickery, I want to convert:

www.subdomain.domain.com

into:

subdomain.domain.com

And I want that same rule applied to any subdomains that I choose.

Can this be done?

About the closest I've come to this is to rewrite a URL if the www is missing, putting it back in, but in this case, reversing that and taking it out, but I'm thinking through my playing around that this isn't the right way to go about it. I simply don't know enough apache to sort it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...