Since moving my website into a subfolder called site, I'm using the following code in my .htaccess to redirect visitors.
- Code: Select all
RewriteCond %{REQUEST_URI} !^/site/
Rewriterule ^(.*)$ site/$1 [L]
Works perfect for the main part. The reason for moving my website, is that I would like a second folder, beta, for developing a new website.
Unfortunately, the rewrite also works out for this folder. The result is that beta.domain shows the website in site with some broken links, instead of the content of beta.
What is the right way to configure this? All normal traffic should go to site, just beta.domain to beta.