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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

apache sitemap redirect

  • 18-11-2010 4:40pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 342 ✭✭adm


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


  • Registered Users, Registered Users 2 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, Registered Users 2 Posts: 6,571 ✭✭✭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, Registered Users 2 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