HTACCESS HELP!!! PLEASE ... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: HTACCESS HELP!!! PLEASE ... (/showthread.php?tid=15279) |
HTACCESS HELP!!! PLEASE ... - El Forum - 01-30-2009 [eluser]Gewa[/eluser] Hi . I am finishing a guide website for austria.. Austria 4 Fun So I need to upload XML files of sitemap. There should be more than 400.000links . So there is more than 25XML files wih links. I need to allow ALL XML and XML.GZ files to be accessble from htaccess. how to make it without writing each name in the line like it is now . Here Htaccess which I wanted to use. but it gives Server 500Error.. Maybe too big???? Code: RewriteEngine on HTACCESS HELP!!! PLEASE ... - El Forum - 01-30-2009 [eluser]ChangedNames[/eluser] If I understand you correctly you don't want index.php to process any of the xml or xml.gz files. If that is the case you might try something like this: Code: RewriteEngine on This is adding in 2 conditions saying "If the file requested IS NOT actually a file then process index.php" So if you have .xml files (or .xml.gz files) on your server the .htaccess file shouldn't be routing it to index.php. HTACCESS HELP!!! PLEASE ... - El Forum - 01-30-2009 [eluser]gon[/eluser] This should serve any sitemap.xml or gz: RewriteEngine on RewriteCond $1 !^(index\.php|images|tinymce|config|forum|uploads|js|img|css|tmp|public|user_guide|robots\.txt|sitemap\.) RewriteRule ^(.*)$ /index.php/$1 [L] HTACCESS HELP!!! PLEASE ... - El Forum - 01-31-2009 [eluser]Gewa[/eluser] will this serve also files like sitemap_firms1.xml, sitemap_firms2.xml... or? HTACCESS HELP!!! PLEASE ... - El Forum - 02-01-2009 [eluser]gon[/eluser] Nope. You can try: RewriteCond $1 !^(index\.php|images|tinymce|config|forum|uploads|js|img|css|tmp|public|user_guide|robots\.txt|sitemap) To serve any file or dir starting with sitemap HTACCESS HELP!!! PLEASE ... - El Forum - 02-01-2009 [eluser]Gewa[/eluser] Thank you gon! THAAAAAAAAAAAAAANK YOU!!! this realy helped me... best regards |