Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How Do I Create A Meta Refresh Redirect In Adobe DreamWeaver

New Here ,
Nov 14, 2022 Nov 14, 2022

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?

TOPICS
How to
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 14, 2022 Nov 14, 2022

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'

...
Translate
Community Expert ,
Nov 14, 2022 Nov 14, 2022

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.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 14, 2022 Nov 14, 2022

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.

 

image.png

 

Hope that helps.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 14, 2022 Nov 14, 2022

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>

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 15, 2022 Nov 15, 2022

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 15, 2022 Nov 15, 2022
quote

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!

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 15, 2022 Nov 15, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2022 Nov 16, 2022

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."

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2022 Nov 16, 2022

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 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2022 Nov 16, 2022
LATEST

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.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines