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.

Htaccess redirect help!

Featured Replies

Hey,

 

Probably a major simple solution but currently I have a very inefficient temp process of redirecting a domain of mine, to a subdomain which is the intended home page.

By this, I mean I have a domain with an ecommerce platform running from a /shop subdomain however I do not currently have a permanent www.domain.com/ home page.

 

I would like to be able to type in www.domain.com and it to take me automatically to www.shop.domain.com without a html redirect script which I currently have.

 

I understand this may be possible with altering my .htaccess however I am unsure on how to do this or what to type. I have tried a couple of lines of code however nothing seems to work for me.

 

I would also like it to display the subdomain (shop.domain.com) page however in the URL bar display simply www.domain.com so it doesn't look like a subdomain redirect.

 

Any assistance or advice with regards to a htaccess redirect in order to achieve this?

 

THANKS IN ADVANCE!!

  • Author

^^

 

I do have access to cpanel and i'm afraid the redirects are 301 and only allow me to redirect a subdomain (/shop) to a domain.. not the other way around. I would like to redirect the public_html/ directory to display the /shop subdomain.

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.