How to Ignore sitemap url from laravel routing?

Ask A Question

Login To post a question

I have sitemap.xml in the root directory of

When I try to access It obviously throws route not found error.

So to try this changed .htaccess to look like:

Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/sitemap.xml
RewriteRule ^ index.php [L]

Laravel version in use: 5.1.

But, no luck. How can I just make use and render manually generated XML file rather than serving from route? I am not looking for complex XML parsing theory here. Just trying a hook to escape from the specific routing.

For more info please click here

Have a question or need a custom quote?