Hello,
I am posting this question again because I didn't explain clear enough. Here are things that I need to achieve with the .htaccess file:
- Re-route /public_html/ to /public_html/myfolder/
- Make website/index.php?q=param to website/param/
- My php files are inside /public_html/myfolder/ and my image files are inside /public_html/myfolder/images/
Options -Indexes RewriteEngine on Options +FollowSymLinks RewriteCond %{HTTP_HOST} !^www\.website\.com$ [NC] RewriteRule .* https://www.website.com/$1 [L,R=301] RewriteRule ^$ myfolder/index.php [L] # Rewrite rules <IfModule mod_rewrite.c> #RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ myfolder/index.php?q=$1 [L,QSA] </IfModule>
The problem is, it redirects fine.. but I can't see any images! It doesn't seem to load my js, css, and etc..
This is the error I get:
1<br />
2<b>Notice</b>: Undefined property: stdClass::$component in <b>/home/website/mypage/includes/Template.class.php</b> on line <b>31</b><br />