Solved

How can I write .htaccess code to redirect 301 pages?

Posted on 2016-07-25
1
121 Views
Last Modified: 2016-07-25
I have revamped HTML based website into Wordpress based now. I am doing SEO for the website. Now the html pages still found in the search.

I have pages like

Old HTML url : http://www.test.com/profile.html
 
New Wordpress Url : http://www.test.com/profile/

I want to redirect all HTML pages into new WP based URL. It seems it needs to be 301 redirected to respective pages.

How can I write .htaccess code as per this link, https://support.google.com/webmasters/answer/93633?hl=en
0
Comment
Question by:Loganathan Natarajan
1 Comment
 
LVL 7

Accepted Solution

by:
David Sankovsky earned 500 total points
ID: 41727127
This link should get you going.
1

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apache error.log 19 43
Securing Wordpress 3 82
PHP Sessions in WordPress 8 31
Does anyone know a good way to install preemptive text for a search within an wordpress site? 3 63
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question