D
D
Denis2015-11-16 23:31:09
Apache HTTP Server
Denis, 2015-11-16 23:31:09

How to remove index.php from such link site.com/m/index.php?

Hello guys, help me,
in .htaccess I registered in the site.com/m/ folder (folder "m" mobile template)

RewriteEngine On
RewriteRule ^index.php$ / [QSA,R]

It does not help, the page is updated and not shown, everything is fine on the main page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
best_santa, 2015-11-16
@winsom

RewriteEngine on
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ /m/index.php$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question