Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2018-10-05 08:42:08

alucard001
Member
Registered: 2018-08-29
Posts: 5

.htaccess with site_admin > Cannot search

Hi

I found that when I am using the .htaccess here:

https://github.com/LiveHelperChat/liveh … .example.2

And when I go to backend panel and do a search, the search cannot be proceed and it returns the same result.

How to update the .htaccess file to cater for this situation?

Thank you very much.

Offline

#2 2018-10-05 08:58:51

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: .htaccess with site_admin > Cannot search

Hi, i fowarded this to the chat owner.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2018-10-22 03:43:50

alucard001
Member
Registered: 2018-08-29
Posts: 5

Re: .htaccess with site_admin > Cannot search

I answer my own question here:  Here is the full section of .htaccess about the rewrite:

Hope it helps someone. 

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
  	Options +SymLinksIfOwnerMatch

    RewriteEngine On
    RewriteBase /

    RewriteRule ^upgrade.php - [L]
    RewriteRule ^webhook - [L]
    RewriteRule ^server-status - [L]
    RewriteRule ^/var/[^/]+/cache/(stylesheets|images|javascripts?)/.* - [L]

    # These 2 lines are key - Redirect all site_admin link and append at the end of index.php, without question mark (?)
    RewriteCond %{REQUEST_URI} ^\/site\_admin\/ [NC]
    RewriteRule ^(.*)?$ index.php/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !\.(php|gif|jpe?g|svgz?|json|ico|png|bmp|css|ogv|js|xml|flv|html|woff2|mp3|ogg|wav|swf|otf|woff|eot|ttf)|var(.+)storage.pdf(.+)\.pdf$ [NC]
    RewriteRule ^(.*)?$ index.php?/$1 [L]

    DirectoryIndex index.php
</IfModule>

Last edited by alucard001 (2018-10-22 03:44:56)

Offline

#4 2018-10-22 07:18:40

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: .htaccess with site_admin > Cannot search

Hi alucard001 , happy to know you have fixed the issue.
Sorry for no answer, i suppose the chat owner is very busy.

Have a great day and enjoy live helper chat!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer