How to Fix Redirected Web Pages

By Nina Rotz

A sure sign that a website has been redirected will be visible in a web browser. A redirection can sometimes occur due to a software malfunction or bad coding. Removing a redirect code is necessary to fix redirected web pages and to clean out browser errors.

Things You'll Need

  • FTP Program
  • Notepad

Step 1

Log in to your domain name root using an FTP program (FileZilla is free). Click on the options tab bar and choose Server - Force, showing hidden files.Open up the public_html directory. Look for the file .htaccess, which stores all redirect functions. Download .htaccess to your computer, preferably on the Desktop where it can be easily found. Open up .htaccess using Notepad.

Step 2

Scroll through the .htaccess file in Notepad and look for URL redirection codes. A 301 is a permanent URL redirect code and a 302 is a temporary redirect code. Remove the entire line of code starting at Redirect 301 or 302 and ending at the page file extension. For example, a permanent web root redirect code will look like this:Redirect 301 /

Step 3

Click on Save File As in Notepad (under File) and choose All Files under "Save as type" tab. Enter .htaccess as the File name. Do not forget to use a period in .htaccess. Select "Yes" when asked to save, overwriting the existing .htaccess file on Desktop.

Step 4

Open up the FTP Program again and log in to your domain name. Open up public_html and upload .htaccess file from Desktop to public_html folder. Overwrite or select "Yes" when asked to overwrite the existing .htaccess file.

Step 5

Open the URL in a web browser to confirm that the redirection code has been removed and that the URL is functioning without errors.

Tips & Warnings

  • Check which software or script is placing redirects inside of your .htaccess file. Go through the installed script list and remove the ones that are no longer in use or patch up existing ones by installing the latest available version.
  • Do not remove any additional coding inside the .htaccess file.
  • Do not upload a blank .htaccess file unless you are absolutely sure that no internal coding is required for your website to function.