I've cloned my website to xampp for a local version. My WordPress site is located in C:/xampp/htdocs/my-website.
I've also cloned my database to local and changed the urls from the web to http://localhost/my-website.
I've made a .htaccess file and already set xampp overwrite all in httpd.conf that the file won't be ignore.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /my-website/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /my-website/index.php [L]
</IfModule>
# END WordPress
I can see my website with http://localhost/my-website but all my .js, .css, .png etc. files can't be found. I looked in network analystic from Firefox and the links are not complete.
This is the wrong link:
http://localhost/wp-content/themes/storefront/startseite.js
But it should look like this:
http://localhost/my-website/wp-content/themes/storefront/startseite.js
I've searched a lot in google but can't find a solution. Hope you know a answer.
Thanks guys!
</div>