Results 1 to 6 of 6
Thread: Help with htaccess after WP blog
-
10-22-2013, 10:10 PM #1Newbie
- Join Date
- May 2011
- Posts
- 27
Help with htaccess after WP blog
Hi,
I moved my blog to a different system that does not have links by dates (/2011/7/), all the article links moved with the articles to the new system, just I have lots of links that some how refer to dates.
Is there a way to mass direct all of them to the main page of the blog without an error?
Thanks.
-
10-22-2013, 11:22 PM #2The Linux Specialist
- Join Date
- Mar 2003
- Location
- /root
- Posts
- 23,990
Moved > Programming Discussion .
Specially 4 U
Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx
-
10-23-2013, 06:34 AM #3Web Hosting Master
- Join Date
- Mar 2013
- Posts
- 1,328
302 redirect them with a RewriteRule in your .htaccess file.
-
10-23-2013, 06:44 AM #4Web Hosting Master
- Join Date
- Aug 2001
- Posts
- 5,597
The mentioned rewrite might be a solution, I'd use a 301 though.
-
10-23-2013, 06:56 AM #5Web Hosting Master
- Join Date
- Mar 2013
- Posts
- 1,328
My bad, that's what I meant. A permanent redirect not a temporary one.
-
10-23-2013, 12:32 PM #6Newbie
- Join Date
- May 2011
- Posts
- 27
Thanks for the quick replies,
Unfortunately, I have to idea how to start writing a "flexible" rule that will apply to all the addresses that starts with /blog/*date*, and I don't want to create plenty of rules for each link :\
P.S, I do believe in "teach a man to fish..." so if know any EASY article that can teach me how to create the rule by myself, that would be awesome.
Similar Threads
-
Wordpress htaccess override subfolders htaccess
By [Axelsson] in forum Hosting Security and TechnologyReplies: 8Last Post: 08-06-2012, 09:21 PM -
.htaccess redirect typo to correct directory?(forum,blog,etcc)
By DewlanceHosting in forum Programming DiscussionReplies: 2Last Post: 12-06-2011, 03:56 AM -
Blog Power - Automated Blog Hosting from Hostlx, Starts as low as $0.9/month
By jainritesh in forum Shared Hosting OffersReplies: 0Last Post: 02-04-2011, 09:52 AM -
can c-panel redirect my blog post links from example.com/blog to blog.example.com?
By jenjohnson in forum Hosting Software and Control PanelsReplies: 4Last Post: 11-20-2010, 02:55 PM -
Convert *htaccess* to *lighttpd htaccess* rules ??
By xSinax in forum Hosting Security and TechnologyReplies: 2Last Post: 09-08-2010, 06:17 AM