Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-07-25
1
Medium Priority
?
190 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 2000 total points
ID: 41727127
This link should get you going.
1

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

916 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