My directory structure is as follows:
framework
project
requirements
.htaccess
The .htaccess file in this directory has the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/project$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/project$1 [R=301,L]
Within project there are these directories:
assets
protected
themes
.htaccess
The .hatccess file in this directory has the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/project/$1 [R=301,L]
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
Currently if you go to the site: www.website.com
You are redirected to: www.website.com/project
How can I modify my .htaccess file so that the site still works, but /project is not appended to every url?