experct .htaccess help needed

Discussion in 'Black Hat SEO' started by solesuppliers, Dec 31, 2010.

  1. solesuppliers

    solesuppliers Newbie

    Oct 3, 2008
    Likes Received:
    I need help trying to figure this out. This is what is needed. Currently all my links are hard-coded to point to a specific folder (ex: http://website.com/xml/*/*.xml). This folder has multiple sub-folders and files within. I want my .htaccess to change the location of were my hard links are pointing to with out having to change whats hard-coded currently. (ex: all links pointing to http://website.com/xml/*/*.xml will now get redirected to http://website.com/xmlNEW/*/*.xml). I would this to be done when the new year starts. So there needs to be a rewrite condition based on the year. I have found some information but cant seem to get the script to work. I wanted to know if anyone could help me with this issue. Id appreciate if anyone can help with this.

    RewriteEngine On
    RewriteBase /

    RewriteCond %{TIME_YEAR} == 2011
    RewriteRule ^xml/?$ /xmlNEW[L]
    Last edited: Dec 31, 2010