Skip to main content
Participant
November 14, 2022
Answered

How Do I Create A Meta Refresh Redirect In Adobe DreamWeaver

  • November 14, 2022
  • 3 replies
  • 1159 views

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?

This topic has been closed for replies.
Correct answer Nancy OShea

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>

 

3 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
November 15, 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
Anselm Hannemann
Community Expert
Community Expert
November 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.

BenPleysier
Community Expert
Community Expert
November 16, 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!
Nancy OShea
Community Expert
Community Expert
November 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.

 

 

Hope that helps.

 

Nancy O'Shea— Product User & Community Expert
BenPleysier
Community Expert
Community Expert
November 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!