Blåsvær

– Senior Fullstack Web Engineer

  • Cases
  • About

Category: .htaccess

Redirect to subfolder

Posted on April 12, 2016April 12, 2016 by admin

For .htaccess to redirect to subfolder, add and .htaccess file to the root with the following content:

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_URI} !^/path/to/folder/

# Rewrite all those to insert /path_to_folder_from_root
RewriteRule ^(.*)$ /path/to/folder/$1 [L]

 

Posted in .htaccessLeave a Comment on Redirect to subfolder
Mail me: sam@blaasvaer.dk
Call me: +45 20 70 33 60