News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Admin error log. Can't clean it. 2.0.15

Started by gragra, May 19, 2018, 09:12:11 AM

Previous topic - Next topic

gragra

Hi. I have noticed that i can't clean Error log in admin panel. It was working before but for some reason stopped.

Errors is not important, not critical, like Password incorrect - Admin.

1. Once i select all errors and click remove all i get popup with #Are you sure you want to remove all error messages?#

2. Click ok

3. Page refreshes but errors is still there. (no new errors appear)

PHP error log empty.

But i can delete error log in forum maintenance.

It was working okey before but stopped suddenly. Means something is wrong and i'd like to find out.

Any ideas how to find out?

gragra

Find out that my .httacces rule make this issue.

RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]



It is used to replace:


http://domain.com/index.php
to
http://domain.com



What is wrong with that code? Any advice? Thank you


Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Removing index.php will screw up A LOT of things.  Don't do it.  There is no need to do it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

GigaWatt

He probably doesn't want his site to look like somedomain.com/index.php, just wants a plain domain name ::).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Chen Zhen

This will redirect ie. https://example.com/index.php to https://example.com/
However it will only trigger if the requested url ends as index.php meaning any queries should work normally.


RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} /index(\.php)?[\s$/] [NC]
RewriteRule ^index\.php$ https://example.com [L,R]


Notes:
- "RewriteBase /" will require any sub-directory if your forum resides in one.
- change https://example.com to your full website url

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Kindred

I don't understand why though....   removing the index.pho is pointless and causes problems.   It serves no useful purpose to remove it (there is no seo benefit) so why do people insist on trying to do it?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

gragra

It's all about Friendly URL. When everything in your page appear as non .php and you have one index.php you want to get rid of it :) But problem is solved.

Kindred

except that removing the index.php causes problems and the URL doesn't matter to search engines....

So, getting rid of it is just plain silly and pointless
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

gragra

Quote from: Kindred on May 21, 2018, 11:11:07 AM
except that removing the index.php causes problems and the URL doesn't matter to search engines....

So, getting rid of it is just plain silly and pointless

I have decided forget about friendly url. It looks way too complicated. If it works for a short time its okey but if you're looking in long run you will face problems one day anyway. So I have decided use SMF provided 'friendly url'.

Like domain/index.php/board,3.0.html

It looks quite aesthetic and it's enough.

Kindred

you realize that "SEF URL" dates back to the 1990s?

It's pointless now, and the standard URL for SMF is actually better, overall?

basically, all that SEF setting does is remove the ?, &, ; and =
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

gragra

Quote from: Kindred on May 21, 2018, 01:47:34 PM
you realize that "SEF URL" dates back to the 1990s?

It's pointless now, and the standard URL for SMF is actually better, overall?

basically, all that SEF setting does is remove the ?, &, ; and =

I think you're damn right. Turned that option at all.



Advertisement: