avatar_arnlweb

[ Video Sharing CMS v4 ] XML Sitemap and 404 Isssue

Started by arnlweb,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

arnlwebTopic starter

Hi,

I am very old member. Today I figure-out a xml sitemap for my website. Please check here http://www.axomtube.com/sitemap.php, it's generating the xml file well but problem is when I open those xml file It does not open (found 404 page).

http://www.axomtube.com/sitemap_1.xml  --- 404
http://www.axomtube.com/sitemap_2.xml  --- 404

My .htaccess rules is following bellow.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^embed/([^/]*)/$ /embed.php?id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php?rp=$1 [L]

RewriteRule ^sitemaps.xml sitemap.php
RewriteRule ^sitemap_(.*).xml?$ sitemap.php?rp=$1 [L]
</IfModule>

<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>

If I comment out this line (#RewriteRule ^(.*)/?$ index.php?rp=$1 [L]), all xml sitemap work fine but video pages does not work.

Please help me to figure this problem.
Thank you so much.


Web Development Services
  •  

TheBritain

I am experiencing odd 404 problems myself. I am finding that I can not access files with write permission 777, or anything above 755.
  •  

arnlwebTopic starter

Permission is all-right, I think it's .htaccess issue. If I remove this line ( RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
)  from the .htaccess file... it works.
Web Development Services
  •  

arnlwebTopic starter

Please check this link....

http://www.streaminghub.org/test/sitemap.php -- Working

http://www.streaminghub.org/test/sitemap_1.xml --- working
http://www.streaminghub.org/test/sitemap_2.xml --- working

in .htaccess, I commented one line.....

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /test/
RewriteRule ^embed/([^/]*)/$ /embed.php?id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
###RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
RewriteRule ^sitemaps.xml sitemap.php
RewriteRule ^sitemap_(.*).xml?$ sitemap.php?page=$1 [L]
</IfModule>

<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>

Now all sitemap are working fine but website page not working. I don't have good knowledge with .htaccess. 
Please check.
Web Development Services
  •  

arnlwebTopic starter

Web Development Services
  •  

Marius P.

You've commented out the PHPVibe rewrite

###RewriteRule ^(.*)/?$ index.php?rp=$1 [L]

# = comment
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

Yes, xml sitemap works if I comment or remove this line RewriteRule ^(.*)/?$ index.php?rp=$1 [L] from .htaccess file. But other pages does not work fine. Check this link http://www.streaminghub.org/test/video/5638/rafshop-new-online-e-store-electronics-gadgets-amp-more/

Web Development Services
  •  

arnlwebTopic starter

It does not matter if I write ### or single #
Web Development Services
  •  

Marius P.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /test/
RewriteRule ^embed/([^/]*)/$ /embed.php?id=$1 [L]
RewriteRule ^sitemaps.xml sitemap.php
RewriteRule ^sitemap_(.*).xml?$ sitemap.php?page=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php?rp=$1 [L]

</IfModule>

<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>


.htaccess reads the rules in order, so the PHPVibe index.php should be the last rule, else it would be applied to every other rule under it.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

Web Development Services
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

Web Development Services
  •  

Similar topics (7)