K
K
Kadekomst364674322018-05-19 21:34:01
MODX
Kadekomst36467432, 2018-05-19 21:34:01

Why does XAMPP redirect to localhost/dashboard when visiting friendy url MODX?

There was a problem and it arose not only for me, but I did not find an adequate solution. The bottom line is that the "Friendly URLs" feature does not work on XAMPP. The ht.access file has been renamed to .htaccess, the friendy urls settings are on the screen below: 5b006c6d8a47a839108861.png
When you navigate to the alias: 5b006cc321abf247624698.png
i.e. the following url: 5b006d05acade602272235.png
takes me back to the localhost/dashboard/ page (I tried to write something like localhost/diagnostika.html, as indicated in the tooltip on one of the screenshots attached above, but gives an error Object not found ). Help me solve the problem, thank you very much in advance))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hypervm, 2021-02-18
@hypervm

Hello everybody!
Check in httpd.conf check #LoadModule rewrite_module path/to/mod_rewrite.so
If present # - remove #
For XAMPP, you need to write RewriteBase /your-site-name/
in your case RewriteBase /modx-hospital in the .htaccess file in the root of your site /
All health!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question