I've made for the second time a craftCMS website. But is goes wrong at the deployment. After many times of trying, I got it kinda working when going to siteurl/craftfolder/web. In that case the content will load without styling.

but I want to load the content with styling at the siteurl, I have some htaccesses and all of that but nothing realy works.. Can anyone help me out..?

This is my folder structure, where www is the root of the webserver

In my rootfolder I have a site.conf file and an .htaccess


<VirtualHost *:80>

    ServerName jbjokido.be
    DocumentRoot "/www/jbjokido.be/web" 

    <Directory "/www/jbjokido.be/web">
        Order allow,deny
        Allow from all


RewriteEngine on
RewriteCond %{HTTP_HOST} ^jbjokido.be$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.jbjokido.be$
RewriteCond %{REQUEST_URI} !directory/
RewriteRule (.*) /directory/$1 [L]

Inside the web folder, where my index.php is, is also an .htaccess file

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  RewriteRule ^jokido/web(.*)$ $1 [L,NC]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
  RewriteRule (.*) index.php?p=$1 [QSA,L]

I hope someone can figure it all out because I'm getting frustrated for not seeing it..

  • 1
    Have you defined the craft site URL in either your .env file or general.php config file?
    – cherrykoda
    Nov 12 at 5:26


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.