adsense

How to Use Redirects in WordPress





1. Open a Web browser and navigate to your blog's main homepage. At the bottom of the page, click 'Admin.' A username and login window displays. Type your administrator username and password for the blog to log into the dashboard.
2. Click the Appearance panel in the left section. In the list of options, click 'Editor' to open the PHP editor for the blog.

3. Click 'Header.php' in the right list of pages you can edit. The code for the main header file opens. This file is where you place the redirect code.
4. Type the following code in the editor:header('HTTP/1.1 301 Moved Permanently');header('Location: http://www.domain.com');exit();Replace 'domain.com' with your new blog location.
5. Click 'Save Changes' to save the changes to the file. Open a new browser tag and navigate to the blog again to test the redirect settings.

Comments

0 Responses to "How to Use Redirects in WordPress"

Post a Comment

Popular Posts

About