G
G
GreatBOND2017-06-11 16:42:23
PHP
GreatBOND, 2017-06-11 16:42:23

Why doesn't single sign-on work properly?

There is such .htaccess:

RewriteEngine On
RewriteBase /music/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /music/index.php?/$1 [L]

I planned to make it so that for any request, for example, localhost/music/home , index.php would be executed
. Now, with this address, it throws 404. And with localhost/music/index.php/home , everything works.
Can anyone suggest why that is? The line RewriteRule ^(.*)$ /music/index.php?/$1 [L] just didn't move or change - everything is the same. Help me please...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Salim_Gareev, 2017-06-11
@Salim_Gareev

RewriteCond is not needed.
RewriteRule ^([^\.\/]*)\/*([^\.\/]*)\/*([^\.\/]*)\/*$ index.php?url1=$1&url2 =$2&url3=$3&ajax=0 [QSA, L]
index.php should be in the main directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question