Kod
RewriteEngine On
RewriteBase /
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
RewriteBase /
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
Jednak załóżmy że inny projekt korzysta z tego index.php ale jego lokacja jest o katalog wyżej niż on sam. Jak się więc odwołać do np. pliku css w nim?
próbowałem "./style.css", "../style.css" jednak nie działają. Jedyne co zaskakuje to odwołanie bezpośrednie przez domenę "http://localhost/inne/style.css" jednak czy jest sposób aby działało to tradycyjnie?
struktura:
Kod
/public_html
-bleble
- index.php // to jest właśnie ten index.php
-inne
- style.css
-bleble
- index.php // to jest właśnie ten index.php
-inne
- style.css