What method do you use to redirect a page ?
What method do you use to redirect a page ?
*Find out if your website is running on an Apache server.
*Locate and download your .htaccess file.
*Create an .htaccess file.
*Type in the code.
*Set the new URL destination.
*Save the new .htaccess file.
*Create a backup.
*Upload the modified file to the root directory of the old domain.
In most instances, the 301 redirect is the best method for implementing redirects on a website.identified a page as compatible, it is generally best to use a 302 redirect.
Hello Friends,
Redirection is the process of forwarding one URL to a different URL. There are three main kinds of redirects: 301, 302, and meta refresh.
you can use the following approaches to redirect to another page
1. Use Apache rewrite rule in .htaccess
2. Use php code header("Location : url2") to redirect to another page
3. use your Cpanel url forwarder to direct the users to another page.
All require just googling to completely implement it.
Create an .htaccess file. If no .htaccess exists in your root folder currently, you can create one using an application like Notepad (or a similar plain text application). The code for the file is contained in the next step.
Make sure that when you save your .htaccess file it begins with a “.”
Note that this file has no tail extension (e.g. “.com” or “.txt”)
Here is something you might interested in:
css-tricks.com/redirect-web-page/
A URL redirect is a web server function that sends a user from one URL to another. Redirects commonly take the form of an automated redirect that uses one of a series of status codes defined within the HTTP protocol.
There are several types of redirects available to Web developers, including manual redirects, HTTP 3xx series status codes, server-side scripts, JavaScript, frame redirects and meta tag refreshes.
A URL redirect may also be known as an HTTP code 3xx redirect, URL forwarding, domain redirection, and domain forwarding.
A 301 redirect also is often described as a "change of address form" you might get at a post office. If someone doesn't know you moved, you want to make sure all your mail is forwarded to your new place.
Re-direction is the procedure of sending one URL to a different URL. There are three primary types of redirects: 301, 302, and meta refresh.
There are various redirect methods available as follows
In Client-side development language : HTML, JavaScript
In Server-side development language: PHP, .NET, etc
Type of web server : Apache, Nginx, Lighttpd
Web-hosting control panel: cPanel , plesk, etc
It depends upon the type of server on which your website is hosted, So
if website is hosted on IIS server, then we need to create a web config file and ad the particular rule of redirection in that web config
if website is hosted on Linux server, then we need to create a ht access file and add the redirection rule for the particular web page
There is one more method which can be used for redirection, known as meta refresh tag, but this tag is least used in the above mentioned methods.
Last edited by mikerock; 02-08-2017 at 09:10 AM.
just follow this link and create redirection code http://www.htaccessredirect.net/
█ DedicatedSolutions
█ Our mission is to deliver top-notch dedicated server solutions!
█ 24/7 Friendly Support |99.99% Uptime Guarantee |orders@dedicatedsolutions.com
it is best to use 301 and 302 redirection if you want to consider seo of your site
Redirection is the process of forwarding one URL to a different URL. There are three main kinds of redirects: 301, 302, and meta refresh.
Types of Redirects
301, "Moved Permanently"—recommended for SEO
302, "Found" or "Moved Temporarily"
Meta Refresh
I use permanent .htaccess redirect code to redirect my pages to another page.
Sometimes I use temporary code and remove it once my work is completed.
Affordable Web Hosting
Shared Hosting - CDN - Instant Setup - Location in US/UK/EU/AU/CA
|
Bookmarks