Answer the question
In order to leave comments, you need to log in
Is there a solution via htaccess?
Task: remove the folder address from the url
At the root of the site is a folder - folder, it in turn contains two files:
1) index.php
2) style file - style.css
Accordingly, index.php is available at site.com/folder /index.php Since the style file is on the same level as the index file,
it is included via a relative path -
<link rel="stylesheet" type="text/css" href="style.css" />
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ folder/index.php [NC,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question