• Welcome to Sitemap Generator Forum.
 

Error in Sitemap.xml

Started by sifeet, August 06, 2008, 02:02:34 PM

Previous topic - Next topic

sifeet

Hi ,

i have this line in my .htaccess file which i need it for generate the rss.xml file :
AddType application/x-httpd-php .php .xml

when i have this line then sitemap.xml doesnt shows up and i get this error :
Parse error: syntax error, unexpected T_STRING in /home/user/public_html/sitemap.xml on line 1

I need both , how can i have them working together ??

Any help would be Great .

Thanks

XML-Sitemaps Support

Hello,

try to change it to:
AddType application/x-httpd-php .php
<Files ror.xml>
AddType application/x-httpd-php .xml
</Files>

sifeet

when i changed it to
AddType application/x-httpd-php .php
<Files ror.xml>
AddType application/x-httpd-php .xml
</Files>

then Sitemap.xml  loading and rss.xml NOT .

I changed to this :
AddType application/x-httpd-php .php
<Files rss.xml>
AddType application/x-httpd-php .xml
</Files>


and now both are working !! am i did wrong or it is another way ?!!!


sifeet

ok Awesome . works very well ..

u are Great Oleg . today in last 10 min u resolved my 2 big problems (vbseo "mecho is my username" and here)

Appreciate it .

sifeet

would u please tell me how can i have 2 files in this part of code :

QuoteAddType application/x-httpd-php .php
<Files rss.xml>
AddType application/x-httpd-php .xml
</Files>

currently just rss.xml is in the code and now i need to add another xml file too .

thanks in advance .

XML-Sitemaps Support

You can add other filenames like:

<FilesMatch "(rss|name2|anothername)\.xml$">
AddType application/x-httpd-php .xml
</FilesMatch>

sifeet


sifeet

hmm this is really wierd !

it suddenly stopped showing my rss.xml file and same error that i had before :

QuoteXML Parsing Error: not well-formed
Location: [ External links are visible to forum administrators only ]
Line Number 28, Column 3:<? header('Content-type: text/xml'); ?>
--^


Any idea ???

XML-Sitemaps Support

Hello,

did you change your .htaccess file? Please check if it works with .htaccess temporarily removed.

sifeet

No i have change nothing .

the only change was in our server , using LiteSpeed instead of Apache .

and still have these lines in .htaccess file :
QuoteAddType application/x-httpd-php .php
<Files rss.xml>
AddType application/x-httpd-php .xml
</Files>

XML-Sitemaps Support

Hello,

litespeed doesn't support .htaccess files I think, you should add thos echanges in litespeed config file instead.

sifeet

i have added all rewrite rules include those lines to httpd.cnfg (like vbseo) . but still i have errors in my rss.xml file !!

([ External links are visible to forum administrators only ])

XML-Sitemaps Support

Hello,

litespeed has a different config and you should use some different options for your RSS feed perhaps. (that doesn't affect your sitemap though)