experct .htaccess help needed

Discussion in 'Apache' started by Solesuppliers, Dec 30, 2010.

  1. #1
    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/pdf/ will now get redirected to http://website.com/xml_/*/*.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.

    Example:
    RewriteEngine On
    RewriteBase /

    RewriteCond %{TIME_YEAR} == 2011
    RewriteRule ^xml/?$ /xml_ [L]
     
    Solesuppliers, Dec 30, 2010 IP