Results 1 to 6 of 6
  1. #1

    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.

  2. #2
    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

  3. #3
    Join Date
    Mar 2013
    Posts
    1,328
    302 redirect them with a RewriteRule in your .htaccess file.

  4. #4
    Join Date
    Aug 2001
    Posts
    5,597
    The mentioned rewrite might be a solution, I'd use a 301 though.

  5. #5
    Join Date
    Mar 2013
    Posts
    1,328
    My bad, that's what I meant. A permanent redirect not a temporary one.

  6. #6
    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

  1. Wordpress htaccess override subfolders htaccess
    By [Axelsson] in forum Hosting Security and Technology
    Replies: 8
    Last Post: 08-06-2012, 09:21 PM
  2. .htaccess redirect typo to correct directory?(forum,blog,etcc)
    By DewlanceHosting in forum Programming Discussion
    Replies: 2
    Last Post: 12-06-2011, 03:56 AM
  3. Replies: 0
    Last Post: 02-04-2011, 09:52 AM
  4. can c-panel redirect my blog post links from example.com/blog to blog.example.com?
    By jenjohnson in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 11-20-2010, 02:55 PM
  5. Convert *htaccess* to *lighttpd htaccess* rules ??
    By xSinax in forum Hosting Security and Technology
    Replies: 2
    Last Post: 09-08-2010, 06:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •