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.

Redirecting Page

Featured Replies

I want to redirect my .com domain to a sub folder, let say mydomain.com//concept/.

Right now i have used a basic html code, but this doesn't work with all the IE, however it works fine with firefox. How can i fix this issue in a simple way!

this is the code used now:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<meta HTTP-EQUIV="REFRESH" content="0; http://mydomain.com/concept/">
</head>
<body>
</body>
</html>

Try this.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="Refresh" content="0; http://mydomain.com/concept"/>
<title>Untitled Document</title>

</head>
<body>
</body>
</html>

 

I changed the code a bit, it should also validate now.

If you server allows, you could also use a PhP header, placed at the very top (Even above the doctype) of your .com page.

 

<?php header("Location:http://mydomain.com/concept/"); ?>

 

which would automatically direct any visitor to your new page. Whether or not it is better than htaccess though I don't know, as I have never used htaccess. Probably best to try both and see which you prefer.

I believe a 301 redirect (htaccess) is the preferred method. It might take a bit longer to do, but it's not that hard.

  • 1 year later...

Like MikeG says, 301 redirect is the best way as it lets search engines know that the page has moved so any page rank is transferred to the new page. If you just want to redirect visitors from ww.domain.com to www.domain.com/subfolder then all you need is a php page called index.php and you can place a 301 redirect on it:

 

<?
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: http://www.domain.com/subfolder/index.php" );
?>

 

If you have lots of pages you want to redirect like www.domain.com/anypage.php to www.domain.com/subfolder/anypage.php then instead of adding a redirect line to each page you can create an htaccess file (as long as your site is on Linux with the Apache mod-rewrite module enabled). You htaccess file would look something like:

 

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain.com/subfolder/$1 [R=301,L]

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.