G
G
grechinaoleg2015-11-25 19:06:19
htaccess
grechinaoleg, 2015-11-25 19:06:19

What should I change in .htaccess to load images based on directories from RewriteRule?

Page URL:
site.com/material/title-name
All files on this page are connected in this way:
href="style.css"
src="images/i.jpg"
and so on.
Since the /material/ directory is present in the URL, all included files must be in this directory:
material/images/i.jpg
material/style.css
You can fix the situation by adding a slash before the address of the included file, but the site editor does not add this slash , and if you add it manually, the editor removes it. That's why you need a solution with htaccess ..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question