I
I
Ivannnn112018-10-30 13:59:44
htaccess
Ivannnn11, 2018-10-30 13:59:44

Why don't paths to OpenServer styles and scripts work in .htaccess file?

Good afternoon.
Here is the content of the .htaccess file

RewriteEngine on
RewriteBase /
Options All -Indexes
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^resource/(.*)$ resource/$1 [L]
RewriteRule ^.*$ [NC,L]
RewriteRule ^.*$ index.php [NC,L]
AddDefaultCharset UTF-8

This is how I make paths
<link href="/../style/style_main.css" rel="stylesheet">
        <!-- Bootstrap -->
        <link href="/../style/bootstrap.css" rel="stylesheet">
        <link href="/../style/media.css" rel="stylesheet">
        <link href="/../style/style.css" rel="stylesheet">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">

The style folder contains all styles, and the index.php file at the root.
How can I write the paths so that everything works correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azaza, 2018-10-30
@natojezlo

../style

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question