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.

301 Redirect Help

Featured Replies

Hi everyone,

 

Could really use some advice on this one!

 

I'm trying to set up a 301 redirect so if i type in 'buyforyourboyfriend.co.uk' it redirects to 'www.buyforyourboyfriend.co.uk' so google will not think they are two different sites copying content.

 

I made an .htaccess file like this; redirect 301 /buyforyourboyfriend.co.uk http://www.buyforyourboyfriend.co.uk but it didn't work...

 

So i made a .htaccess file like this; redirect 301 / http://www.buyforyourboyfriend.co.uk/ and put it in my root directory, that redirected fine if i typed in the browser 'buyforyourboyfriend.co.uk' but now it wont load any other pages of my website because the .htaccess file doesnt have .htm extensions on the end.

 

Do i have to list every page of my website on the .htaccess file???

  • Author

Ok scrap this post, think i've done it now! Seems to be working fine anyway!

 

Heres the code i used (i decided on redirecting all to the non www site)

 

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.buyforyourboyfriend.co.uk [nocase]

RewriteRule ^(.*) http://buyforyourboyfriend.co.uk/$1 [last,redirect=301]

 

 

If anyone knows if thats 100% right or not would still be greatful!

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.