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.

Advice for "Temporary" webpage

Featured Replies

I have a small website and need a temporary "events" page for the next three months.

 

While adding this is no problem, what is the best way to remove this from the net ? Will I need to use a 301 redirect or is there another way.

 

At the moment I'm on a server package which doesn't allow the use of .htaccess.

 

Many thanks for any advice.

 

Paul

So long as you still have an index page, just be a redirect at the top of the page to the page you want to display.

 

You will need to change your index filetype to .php to use this, but your new index.php page should look a little like this:

 

 

<?php
  header( 'Location: http://www.yoursite.com/events.html' ) ;
?>

<html>
<head>
blahblahblahstylesheetblahblahblah
</head>
<body>
Redirecting...
</body>

 

Hope this helps!

Danai

Although Danai is close, the correct way is to do this:

 

<php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.newdomain.com/page.html");
exit();
?>

 

It's telling Google that the page has no permanently moved to a different location.

 

Then I'd look at changing hosts.

 

EDIT: I say correct, but what I mean is this the best 301 redirect solution in your current situation

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.