V
V
Victorius132019-03-19 00:30:20
htaccess
Victorius13, 2019-03-19 00:30:20

Why is the site not displayed correctly after .htaccess?

Why is the htaccess file not working correctly:

RewriteEngine on
RewriteRule ^player/([-a-zA-Z0-9_]+)/? player.php?name=$1 [L]

Displayed like this:
5c900da95f6ee397594362.png
And should be like this:
5c900dbc6acbf948067705.png
Thank you for any answer!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mysterion, 2019-03-19
@Victorius13

Because the paths on the page for scripts and styles are relative. And when you open the /player/. then styles and scripts are loaded from /players/ and then the path specified on the page is substituted.
view-source_vimeget.ru_player_noob_-_Goo

V
Viktor Taran, 2019-03-19
@shambler81

colleague get parameter is not part of the url, why are you trying to catch it in the request uri?
https://donatstudios.com/RewriteRule_Generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question