Switching over to wordpress
-
Hello fellow Mozers!
I've searched to see if I find an answer, cant seem to find it.
Is there a way to do a blanket 301 redirect? I am moving a site that has all pages end with .html extension over to wordpress.
I was wondering if I could set up a rule that says redirect all pages with .html extension to a version of the page with no extension. I will keep the same url with the exception of the .html extension.
http://www.website.com/page.html to http://www.website.com/page/
http://www.website.com/page-title.html to http://www.website.com/page-title/Instead of doing a 301 redirect for about 250 pages, I was wondering if I can just do one rule that will handle all the redirects considering I am keeping the same page url without the .html extension.
Thanks
-
Mike
I think this is what you are looking for: https://moz.com/community/q/html-extension - also a recent question from the Q&A. I think Dana's link explains how to maintain the .html in WordPress and that debate was more about if 301's pass PR etc.
Whereas if you've decided you already want to redirect, that tells you how.
-
With 250 URL, you can do this manually in a couple hours. Use a free crawler and download to excel. From there, create the new URLs you want to 301 to and throw them into the .htaccess.
-
Try putting the following lines to your .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ /$1 [L,R=301] -
I thought I remembered a very similar question to this one that was posted recently so I did a little digging and found it.
See if this helps: https://moz.com/community/q/converting-to-wp-should-i-add-html-or-301
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is managed wordpress hosting bad for seo?
hi, i would like to create my own website, but I am confused either to choose cpanel hosting or managed wordpress
Web Design | | alan-shultis0 -
Migration from HTML to Wordpress - SEO Implications?
I am in the process of having a wordpress site developed to replace my current HTML site. (I currently have my website in html and a blog in wordpress in a sub directory). I am doing this in phases to try and preserve as much of my good rankings as possible. My first phase is to replicate my site with the exact same pages, meta data, and site structure. I'm hoping that google will see this as not much change and not change my rankings for the worse. I also made it a goal that my site speed tests be at least equal to what they are now. We will have to 301 all of the URLs however since it will be going from /example.html to /example. I believe my blog will also need to move into the root directory as well, so I need to 301 all of those pages. I plan to wait a couple months for Phase 2. Phase 2 involves replacing old content (photo galleries), and introducing new content (virtual tours, videos, new pages, etc.) One of my reasons for moving to wordpress is to keep up with current trends a little easier since I have very little time. (I am owner, website maintainer, SEO - all on my own). My question here is three parts. 1. Do you think this strategy will work to preserve my current rankings? 2. Do you have any lessons learned or advice to share with me to make this as smooth as possible? 3. Do I really need to wait to add new content? I might get antsy and want to do it sooner! 🙂 Thank you in advance!
Web Design | | CalicoKitty20001 -
Anybody with a business site using Webflow CMS or another non-WordPress CMS/ sitebuilder?
If you have built your business site using Webflow CMS, kindly share your insights on how good their CMS is for SEO and how easy it is to rank a site. If you are not familiar with Webflow but have had a positive experience with another non-WordPress CMS/ sitebuilder, kindly share your opinions.
Web Design | | Blu_Ocean99.0 -
Wordpress SEO/Tag plugin recommendation for sports (soccer) website
I own a Wordpress website which covers soccer in the DC MD VA area called DMV Soccer http://www.dmvsoccer.com/ We write weekly recaps where we tag a player who has scored a goal or performed well in a game. For each player, obviously, a tag is created. What I'm looking for is a plugin or solution that would allow me to tag a player, but also automatically assign a team to that player so that the team name and player's name are optimized on the individual player's tag page. So if I were to tag George Murphy on a recap, and I assign him to a team, let's say DC United. The tag page would have a title, something like: George Murphy Soccer Player for DC United and the meta description: George Murphy, soccer player from MD who players for DC United archives Or something similar, if that makes sense. Should I skip using tags and instead start assigning each player as a sub-category under each team? I'd like to try to avoid that, because not each category will be based on a player. Any suggestions in terms of existing plugins or other recommendations?
Web Design | | georgetsn1 -
About wordpress database
Hi Guys, During the time I have installed wordpress many times on differents folder of my hosting service for making some experiment. how can I make sure this has not slowed down and dirty my database?
Web Design | | Italianseolover
Because I'm afraid to have deleted the wordpress folders in the pasts instead of uninstall wordpress from the wordpress autoinstall panel 😞 Could old wordpress database (that I don't use any more) slow down my primary wordpress installation? Sorry for my bad english and thank u... I am a little ignorant about databases and I am afraid about put hand on them.0 -
Deciding which Wordpress Platform
Hey Guys, I am trying to choose which is the best platform to use to build my website. I have had a look at the following: studiopress thesis headway woothemes I've just spent a month building a website using the WIX platform only to find out that it's not SEO friendly, so before I start a new site, I just want to make sure I choose the BEST SEO FRIENDLY theme. If someone could please assist that would be greatly appreciated. Also, I already have paid for theme subscriptions to the following sites (before I joined SEOMOZ) are the following SEO friendly? https://www.elegantthemes.com/ http://www.templatemonster.com/ http://www.templatesold.com/ Thanks so much in advance
Web Design | | Giorgio680 -
Best way to develop a WordPress version of your site and then move it?
I have two websites that generate hundreds of organic hits each day. I want to switch both of them to WordPress. What is the best way to go about developing these sites then making them live while still keeping the current ones up?
Web Design | | C-Style0 -
Coding a WordPress shopping cart
I have searched high and low for a light, simple to use Wordpress shopping cart plugin which can use custom templates and work with the transporter and payment gateway i'd like. Unfortunately i haven't found anything. I am currently looking for an example, maybe a tutorial somewhere but can't seem to find anything online, all i can find are advertisements for existing plugins. Can anyone help my any further? I know it's not an SEO related question but i'm out of ideas.
Web Design | | ldestrooper0