PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Dec 18, 2018 7:15 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Dec 03, 2018 4:23 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4426
Location: United Kingdom
Hi there

We are about to transfer someone's Weebly website to Wordpress, but their Blog is badly written in the URL. Rather than just /news or /blog, it has their company title in it, and it's causing them SEO issues.
Their blog goes back to 2011 - so using a tool to manually edit each one is a no-no.

Would a simple HTACCESS 301 like this work?
Syntax: [ Download ] [ Hide ]
RewriteRule /sitename-blog/$ /blog/? [R=301,L]


It needs to capture the main blog page, plus categories, plus the blog posts themselves.

Thanks

Simon

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group