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 help needed

Featured Replies

Hello,

 

Im useless at htaccess as youll be able to tell by the end of my post

 

I need a redirect code so that it does the following

 

when directory /website/ is viewed i need it to be redirected to /website/home/

 

but NOT when the url /website/with something after it

 

If that makes sense

 

Cheers people +1 for anything usefull ;)

RewriteEngine On
RewriteBase /
RewriteRule ^/website/$ /website/home/ [R=301,L]

 

Something like that should do it

 

Note that the / after the ^ might not be required, so if it doesn't work, remove that

Edited by Jay Gilford

  • Author

RewriteEngine On
RewriteBase /
RewriteRule ^/website/$ /website/home/ [R=301,L]

 

Something like that should do it

 

Note that the / after the ^ might not be required, so if it doesn't work, remove that

 

Your a gem mate, the reason the code i was trying myself wasnt working was because i didnt have the ^ before and $ after the redirect directory

 

Thanks

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.