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
-
DNS Prefetching for wordpress site
We have given below as DNS prefetch in our website. CMS is wordpress. Are these okay? I wonder why fonts.googleapis.com is not working. One of our competitors is using youtube. Can we improve it any how?
Web Design | | vtmoz0 -
Website Traffic Drop After Switch
Hey guys, two weeks ago we switched over to the new website, however we've experienced about a 20% drop in Google Organic traffic and it does not appear we are getting indexed correctly by Google. On search results it's not using the meta description and the links still point to the old pages. Robots is fine We are using the same IP address Re-directs are in for the pages in question. Sitemap was submitted to Google in Webmaster tools What else do we need to do?
Web Design | | ScottOlson0 -
Wordpress Blog for Magento Store?
Magento is fantastic for e-commerce although the blog capabilities are limited and our web development fees are just ongoing. I have great experience with wordpress sites and I don't have a bad word to say about the CMS, there are plugins available for everything you possibly need to develop the blog. Would it be a good idea to integrate a wordpress blog for our e-commerce store? To keep both the transactional website and the blog on the same domain, but have a different style for the blog so we're not trying to 'sell' to people looking for home improvement advice and DIY guides, our main priority with the blog is to grow the website authority.
Web Design | | Jseddon921 -
Wordpress: Pages vs Posts vs Portfolio
Hi All, I'm looking to put pen to paper and design my main structual template for my website. I will be creating the new site in Wordpress. My understanding of Wordpress is broken into the Static Pages, Posts and Portfolio. Static PAGE
Web Design | | Mark_Ch
Static one off content.
No tags, categories or archived Posts
content entries, which is listed in reverse chronological order.
Update post entry to maintain overall freshness of your website.
tags, categories & archived Portfolio
????? Question What are the benefits of a portfolio page over Static Pages & Posts When creating feature rich articles should i use static pages, posts or portfolio. Thanks Mark0 -
Wordpress shortcode or plugin for current time
In the footer of my WP site at http://www.strikemodels.com/, I have "Questions? Call us at xxx-xxx-xxxx 10:00 am to 8:00 pm Pacific time or email [address]" I've searched, but haven't easily found a shortcode where I can insert the current time for my time zone in this footer statement. Does anyone know if such a thing exists? The Do Not Disturb function on the iPhone has been a big help, but we've still had calls at three in the morning from someone in Australia on New Year's Day who didn't know how to look up time differences online.
Web Design | | KeriMorgret0 -
Replacing Slider Image WordPress
Hi Everyone, I decided to delete my slider from my homepage and replace it with a static image. However, after I deleted the slider, I'm left with a dark square where the slider used to be. I want to put my new static image in that same spot, but have no idea how. Does anyone know where or what code I should add to do that? The page is www.kempruge.com The WP Forums never seem to be too helpful for me, but Moz always is! Thanks in advance, Ruben
Web Design | | KempRugeLawGroup0 -
‘80-90% of SEO already done for you in Wordpress’ Am I missing something?
Hi there, I’m looking for some feedback on a statement made on my Facebook Page re Wordpress and SEO. Please understand I wouldn’t class myself as an expert but I am competent and achieve satisfactory results for clients, more so since becoming a SEOmoz Pro user, I’ve just had some great results for a client using SEOmoz guidelines in ‘On Page SEO Reports’ thank you very much! A comment however made on my FB page has got my interest…. “as you (kn)no(w) google loves WP and will get listed quicker as 80 to 90% of your SEO is already done” Does Wordpress (or Joomla for that matter mentioned in the same conversation) have some SEO advantages that Google loves as the poster would have me believe, can I save time and effort working in word press from an SEO point of view? I use the age old techniques of targeting key phrases and words and distributing them accordingly. Creating internal link structures with ‘key worded anchor text’ etc before embarking on any off page SEO. Do any of you vastly experienced (in comparison to me) SEO folk have any insight into what this statement refers to? I did not gather any references to SEO advantages in Wordpress or Joomla in the Enge and Fishkin et al book The Art of SEO, or any of the other books I’ve read, to develop my knowledge on SEO for the benefit of my clients and of course my pocket. J
Web Design | | JemRobinson0 -
Yahoo to Wordpress Permalinks
I have had a yahoo site for a couple of years. I want to start blogging so I had a worpress site built. After the site was build I noticed the urls from the previous site were not the same. For example www.besthomecaremn.com/about_us is now www.besthomecaremn.com/index-php/about_us. The company working on the site told me that that yahoo did not support permalinks and they could not make them match exactly. This is a problem because several of my pages rank differently for different terms: /about_us, /employees, /clients, /contact_us, etc, all rank differently. When they came up in the search results and were clicked on you were taken to the old site so it was like we had two sites. The company has now set that to send you to a page that says this page under routine maintenence. They are basically telling me they cannot make the urls for those pages stay the same. I am very frustrated and don't really know what to do at this point. Are they right? Can it really not be done? Can those pages alternatively be set to redirect to the new page urls or will that negatively affect the rank for those pages and how? Should I have them put the old site back up and swith hosting companies? Any advice on what to do in this situation is greatly appreciated.
Web Design | | AndreB0