We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

.htacces error 500 | Forum

Topic location: Forum home » Support » General Questions
Jean-Luc
Jean-Luc Feb 4 '16

Hello


sorry for my English

I edit my .htaccess for that sitemap be recognized and  have a 500 error ? If I return the old no problem


Is there an error in my .htaccess ?


Options +FollowSymLinks

RewriteEngine On


AddEncoding gzip .gz

AddEncoding gzip .gzip

<FilesMatch "\.(js.gz|js.gzip)$">

  ForceType text/javascript

</FilesMatch>

<FilesMatch "\.(css.gz|css.gzip)$">

  ForceType text/css

</FilesMatch>



RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/

RewriteCond %{REQUEST_URI} !/ow_cron/run\.php

RewriteCond %{REQUEST_URI} !/e500\.php

#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond% {REQUEST_URI}! / Sitemap \ .xml 

RewriteRule (.*) index.php


Thanks for your help



The Forum post is edited by Jean-Luc Feb 4 '16
ross Team
ross Feb 4 '16
Jean Luc


try to add this line: 

RewriteCond% {REQUEST_URI}! / Sitemap \ .xml 


Between these lines


See if the issue persists. 

Jean-Luc
Jean-Luc Feb 5 '16
Ross


this line is already

RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond% {REQUEST_URI}! / Sitemap \ .xml 

RewriteRule (.*) index.php


ross Team
ross Feb 5 '16
put it between these lines:


RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/index\.php

Jean-Luc
Jean-Luc Feb 5 '16
All lines is already


Options +FollowSymLinks

RewriteEngine On


AddEncoding gzip .gz

AddEncoding gzip .gzip

<FilesMatch "\.(js.gz|js.gzip)$">

  ForceType text/javascript

</FilesMatch>

<FilesMatch "\.(css.gz|css.gzip)$">

  ForceType text/css

</FilesMatch>


RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/

RewriteCond %{REQUEST_URI} !/ow_cron/run\.php

RewriteCond %{REQUEST_URI} !/e500\.php

#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond% {REQUEST_URI}! / Sitemap \ .xml 

RewriteRule (.*) index.php


ross Team
ross Feb 5 '16
put

RewriteCond% {REQUEST_URI}! / Sitemap \ .xml 


 between these lines:

RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/index\.php

Jean-Luc
Jean-Luc Feb 5 '16
no direct internal error 500
ross Team
ross Feb 5 '16
we just tested this condition


our htaccess looks like this: 


Options +FollowSymLinksRewriteEngine On
AddEncoding gzip .gzAddEncoding gzip .gzip<FilesMatch "\.(js.gz|js.gzip)$">  ForceType text/javascript</FilesMatch><FilesMatch "\.(css.gz|css.gzip)$">  ForceType text/css</FilesMatch>

RewriteCond %{REQUEST_URI} !^/index\.phpRewriteCond %{REQUEST_URI} !^/oxwall/sitemap\.xmlRewriteCond %{REQUEST_URI} !/ow_updates/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/RewriteCond %{REQUEST_URI} !/ow_cron/run\.phpRewriteCond %{REQUEST_URI} !/e500\.phpRewriteCond %{REQUEST_URI} !/captcha\.php#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]RewriteRule (.*) index.php



and it works as it should 


see screenshot


contact your hosting provider, you probably don't have mod_rewrite properly configured. 

Attachments:
  Screenshot from 2016-02-05 18:42:25.png (193Kb)
Jean-Luc
Jean-Luc Feb 5 '16

Ok I'll do with my hosting


thanks for your help

ross Team
ross Feb 7 '16
Keep us updated