Revcms index keeps reloading

Eronisch

Web Developer
Jan 1, 2011
234
25
Hey,

Since i moved from webhost, my index keeps reloading and i have no idea why.
I'm on nginx.

This is my index:



And .htacces:

PHP:
RewriteEngine On
 
RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteRule ^(.*)\.htm$ $1.php [NC]
RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
.htaccess isn't supported by nginx. Add this to your nginx.conf file:
Code:
location / {
  rewrite ^/(|/)$ /index.php?url=$1;
  rewrite ^/([a-zA-Z0-9_-]+)(|/)$ /index.php?url=$1;
  rewrite ^/(.*)\.htm$ /$1.php;
  rewrite ^/(|/)$ /dash.php?page=$1;
  rewrite ^/([a-zA-Z0-9_-]+)(|/)$ /dash.php?url=$1;
}
 

Eronisch

Web Developer
Jan 1, 2011
234
25
I have a cpanel account, i don't have acces to that file.
It seems like it does accept my .htacces file, otherwise i would get all kind of errors.
 

Eronisch

Web Developer
Jan 1, 2011
234
25
My host uses apache for webhost and for processing nginx.

Internal Server Error

When i use the content you gave me.

By the way, doesn't matter what i do all my pages go to /index

Test it yourself at:
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
My host uses apache for webhost and for processing nginx.

Internal Server Error

When i use the content you gave me.

By the way, doesn't matter what i do all my pages go to /index

Test it yourself at:
Did it only gave Internal Server Error or also an error code?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
Please provide me with your Teamviewer details trough PM, if it's fixed I'll post it here to for further members. 
We concluded that this is a problem with their host.
 

Users who are viewing this thread

Top