Copy link to clipboard
Copied
I used to be able to access a dialog for creating a Refresh meta tag via Insert > HTML > Meta > Refresh
What is the current way to bring up a Refresh dialog?
Google Developers recommends allowing old URLs to go 404 so they can drop from Search Engine Results Pages (SERPs).
When that's not practical, a permanent Rewrite on the server will seamlessly redirect users to new URL automatically. No browser activity required. Using 301 in an .htaccess file enables you to redirect users from an old page to a new page without having to keep the old page on your server. If your hosting plan has WHM or C-panel, you can do this by logging in to your server'
...Copy link to clipboard
Copied
The use of Meta Refresh Redirect is deprecated or in other words, disapproved by W3C(World Wide Web Consortium), since it is a non-standard procedure of redirection, it disorients users, and it can also disrupt a browser’s history of visited pages.
An alternative is to use serverside redirects like using the `.htaccess` file.
Copy link to clipboard
Copied
Use code.
<!-- Redirect page after 3 seconds -->
<meta http-equiv="refresh" content="3;url=https://www.mozilla.org" />
<meta> elements defined:
https://developer.mozilla.org/docs/Web/HTML/Element/meta
NOTE: REFRESH can cause usability problems for some people.
Hope that helps.
Copy link to clipboard
Copied
Google Developers recommends allowing old URLs to go 404 so they can drop from Search Engine Results Pages (SERPs).
When that's not practical, a permanent Rewrite on the server will seamlessly redirect users to new URL automatically. No browser activity required. Using 301 in an .htaccess file enables you to redirect users from an old page to a new page without having to keep the old page on your server. If your hosting plan has WHM or C-panel, you can do this by logging in to your server's admin panel.
Or you can create/edit the server's .htaccess file manually in Dreamweaver and upload to your server's root folder.
Some 301 Rewrite examples for .htaccess file.
## REMOVE WWW FROM URLS ##
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
## REWRITING HTTP TO SECURE HTTPS ##
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
## REDIRECTING NON-EXISTING LINKS TO INDEX PAGE ##
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Copy link to clipboard
Copied
This should be marked as correct solution. One addition to this:
You can set a 301 Permanent redirect if you want to have this forever, the redirect is cached for a long time. If you only want to redirect temporarily (e.g. during a special event) you can set a 302 Temporary redirect which works the same. Just use the other redirect code for it.
Copy link to clipboard
Copied
This should be marked as correct solution. One addition to this:
You can set a 301 Permanent redirect if you want to have this forever, the redirect is cached for a long time. If you only want to redirect temporarily (e.g. during a special event) you can set a 302 Temporary redirect which works the same. Just use the other redirect code for it.
By @Anselm Hannemann
You are 100% correct!
Copy link to clipboard
Copied
either if I agree with what @Nancy OShea propose, if @Pastor Rocklyn doesn't use Apache as web server, and by any chance use nginx, the proposed solution won't work... .htaccess file are not recognised by nginx....
well, except if nginx is used as a reverse proxy of Apache, or if a plugin is used as https://github.com/e404/htaccess-for-nginx
for information
Copy link to clipboard
Copied
Which is why I prefaced my solution. "If your hosting plan has WHM or C-panel, you can do this by logging in to your server's admin panel."
Copy link to clipboard
Copied
don't get defensive, I didn't contradict anything you said, in fact if you read carrefuly what I said, it is a complement of information to what you said, on how to handle it if nginx is used 😉
Copy link to clipboard
Copied
I wasn't being defensive. 😕 You qualified your solution as I did. Most worthwhile hosting plans offer a server admin panel for performing these kinds of tasks.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now