HTACCESS HELP!!! PLEASE ... |
[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
[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.
[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]
[eluser]Gewa[/eluser]
will this serve also files like sitemap_firms1.xml, sitemap_firms2.xml... or?
[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
[eluser]Gewa[/eluser]
Thank you gon! THAAAAAAAAAAAAAANK YOU!!! this realy helped me... best regards |
Welcome Guest, Not a member yet? Register Sign In |