URL masking using htaccess

Hi Everyone

I have a domain - sennajean.com.au - that redirects to sennajeandesigns.bigcartel.com
The redirection works fine but I would like sennajean.com.au to remain in the address bar so clients don't know its a Bigcartel website.

Can someone please tell me what I need to add to the htaccess file to get this masking working


Michael Tiemann
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lucas BishopMarketing TechnologistCommented:
This will require more than htaccess to fully mask your domain over the top of the Big Cartel store.

You'll want to setup a "custom domain" inside of Big Cartel and update the DNS records for sennajean.com.au to point at your Big Cartel store.

First, inside of your Big Cartel admin:
Go to Store > Settings > Domains, add sennajean.com.au

Next, you'll need to update some DNS settings.
You'll do this via your registrar or your hosting provider, depending on where you are managing your DNS settings.
It looks like your name server is at tiemannhostingservices.com -- so wherever you manage that record, is where you'll make the change.

You will want to add in a CNAME record:
Alias: www
URL: sennajeandesigns.bigcartel.com

Next, you'll want to setup a 301 redirect in the htaccess file to send people from the root domain to www:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^sennajean\.com.au$ [NC]
RewriteRule ^(.*)$ http://www.sennajean.com.au/$1 [R=301,L]

Open in new window

That should just about do it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tiemannitservicesAuthor Commented:
Hi Lucas

Thanks for the info. That has helped
I have done that and now www.sennajean.com.au and sennajean.com.au stay in the address bar when the Bigcartel page shows but as soon as you click on one of the links like About Us or Contact, for example, the address bar reverts to sennajeandesign.bigcartel.com/about or sennajeandesign.bigcartel.com/contact

How can I mask that as well?

Michael Tiemann
Lucas BishopMarketing TechnologistCommented:
Hi Michael,

When I click on the links you mentioned, I see the correct url in the address bar:

I'd try clearing the cache in your browser. Either that or you've already figured it out.

tiemannitservicesAuthor Commented:
Hi Lucas

Thanks for your help.  I have already figured it out. Your comment helped though so I shall give you the acceptance

Michael Tiemann
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.