Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

URL problem that's driving me nuts!

Featured Replies

OK, I have a question! And please bare with me here...

 

I have set up a sub-domain here in the UK on an in-house server called (for example purposes) company1.mycompany.com for a customer in Asia.

 

Their top level domain is owned by a 3rd party Asian company.

 

Now...I have contacted the 3rd party asking them to point the www.company1.com URL they own to the sub-domain company1.mycompany.com I have set up here in the UK.

 

This is where I get a problem...

 

When I go to www.company1.com the address in the address bar changes to the sub-domain address company1.mycompany.com

 

This is not what I want.

 

I want www.company1.com to stay in the address bar across the entire site.

 

At the moment, if I link to a specific page, like this:

 

www.company1.com/contact.html it does NOT WORK

 

I have to link to it like this: company1.mycompany.com/contact.html

 

Does anyone know where the problem resides here? Is it something I have to sort out my end or is it something they have to sort out their end?

 

We are going around and aroooound in circles here and it's driving me mad!! Any help would be MASSIVELY appreciated!!

 

Thank you and I hope you understand all of that dribble!!

 

Aled M. :D

It's the type of forwarding they are using. Ideally you want to set up the domain as a seperate hosting account and ask them to change the DNS settings of that domain to point at the correct server.

 

There are other types of forwarding but from what I can remember it would just display www.company1.com in the address bar all the time.

 

The only other option I could think of is to use htaccess, but I'm not even sure how/if that would work.

  • 1 month later...

Might have something to do with the DNS settings as well the hosting for that domain.

I'd check with the hosting comapny

  • 1 month later...

It's the type of forwarding they are using. Ideally you want to set up the domain as a seperate hosting account and ask them to change the DNS settings of that domain to point at the correct server.

 

There are other types of forwarding but from what I can remember it would just display www.company1.com in the address bar all the time.

 

The only other option I could think of is to use htaccess, but I'm not even sure how/if that would work.

 

I agree with the above. (except the last line) .htaccess wont solve the problem.

Except when you cloak the URL.

www.company1.com the address in the address bar changes to the sub-domain address company1.mycompany.com SOLVED

www.company1.com/contact.html it does NOT WORK WONT BE SOLVED

 

The only good way to solve is to do it by the DNS

(and not by a simple file redirection they have in place on the moment)

 

 

kind regards, Faisj

 

Ps. there are many ways to solve it by DNS. Anyone with experience can consult you.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.