InMotion Hosting Support Center

showing map on my site.

Category: Domain Names

tarafox
Asked:
2016-09-20 10:41 am EST

Hits: 40
I have a site hosted on WordPress. I have a google maps plugin. when looking at the map, I want my domain name to show in the URL, I think example 2 would accomplish this, but I don't understand how to use the code.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

this is the "example 2" i was referring to:

Example 2: Redirect a domain to a specific url

There is another way you can do your redirect to show a specific URL, but keep the domain the same as well. If you want visitors to go to DomainA.com with a specific page in mind when doing so, you may use this code:

RewriteCond %{HTTP_HOST} ^DomainA.com
RewriteRule ^(.*) http://DomainB.com/PathToPageHere [P]

You would use this method if, for example, you had an external blog such as one on blogspot.com or maybe a shopping cart on etsy.com that you want people to visit your domain without fully hosting the domain there. Now, visitors can access your site using your domain, but see the content of an external URL.
tarafox
8 Points
2016-09-20 10:42 am EST

OTHER ANSWERS

0

christopherm
Staff
11,130 Points
2016-09-20 10:52 am EST
Hello tarafox,

Thank you for your question about showing maps. The example provided would redirect site visitors from one domain to a different domain. That may not get you the effect you're looking for. If you are trying to replace the Google domain on a Google map with your own domain name then the example code would not help. Also, it looks like Google requires the maps.google.com domain name to display maps correctly.

Best,
Christopher M.

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!