Mobile app version of vmapp.org
Login or Join
Berumen354

: Xampp and file paths I'm having hard time with xampp, it really getting me crazy. I have few installations of WordPress with Roots Template, which was loading without any css, js..etc. And the

@Berumen354

Posted in: #Html5 #Path #Php #Webserver #Xampp

I'm having hard time with xampp, it really getting me crazy.
I have few installations of WordPress with Roots Template, which was loading without any css, js..etc. And the solution was to delete Boilerplate's default .htaccess and add:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteRule ^assets/css/(.*) /wp-content/themes/test_template/assets/css/ [QSA,L]
RewriteRule ^assets/js/(.*) /wp-content/themes/test_template/assets/js/ [QSA,L]
RewriteRule ^assets/img/(.*) /wp-content/themes/test_template/assets/img/ [QSA,L]
RewriteRule ^plugins/(.*) /wp-content/plugins/ [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress


Now I'm facing the same problem but with HTML5 Boilerplate and Twitter-bootstrap, standard html5 file with no complex code. I've tried using:

dirname(__FILE__);


And it still can't locate the files. Anybody had the same problem and found the solution?
Thanks in advance.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Berumen354

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme