Thread tagged as: Problem, Configuration

Rewrite rules stop directory index.html

Hi- We have some pages that live outside of Perch. When I visit the directory, /2019TYP it does not pull up the index.html page by default. I temporarily removed the rewrite rules in the .htaccess file and I was once again able to get the index.html page to load when visiting just the directory name. Any ideas on how to set it up so that if I visit a directory created outside of Perch, it will automatically load the index.html page.

Amanda Shafer

Amanda Shafer 0 points

  • 3 years ago

Assuming its Perch Runway, the second line will probably do it?

RewriteCond %{REQUEST_URI} !^/perch 
RewriteCond %{REQUEST_URI} !^/2019TYP 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /perch/core/runway/start.php [L]

That fixed it. Thanks so much!!