Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

apache sitemap redirect

Options
  • 18-11-2010 5:40pm
    #1
    Registered Users Posts: 648 ✭✭✭


    hi,

    can anyone tell me what command i can us in my htaccess so as if site.com/sitemap.xml is accessed it actually shows another page (like site.com/generatesitemap.php )

    tnx


Comments

  • Registered Users Posts: 342 ✭✭adm


    simplest rule ...
    RewriteEngine on   
    RewriteRule ^sitemap.xml$ generatesitemap.php [L]
    


  • Registered Users Posts: 648 ✭✭✭ChicoMendez


    tnx alot !


    i have one other issue you may know how to do

    basically im using mod_expires to cache js and css files but i want to be able to update them so i want to put in a last mod time stamp (of a config file) in the path so as when i upload that config file it will realod the js and css files

    psudo code :

    if [timestamp]/path/file.js then load /path/file.js

    where the time stamp is of a file in the root called config.php

    tnx


  • Registered Users Posts: 6,510 ✭✭✭daymobrew


    if [timestamp]/path/file.js then load /path/file.js
    Look at the stat function. Compare mtime element to the current time.


  • Registered Users Posts: 648 ✭✭✭ChicoMendez


    THANKS alot that sorted it

    however a follow up issue is here if you dont mind looking at it : http://www.boards.ie/vbulletin/showthread.php?p=69119613#post69119613


Advertisement