Forum

Thread tagged as: Question, Runway

Runway redirect to runway/start.php

I'm having issues with my domain www.chase-erwin.com redirecting to https://chase-erwin.com/perch/core/runway/start.php

I have the rewrite rules from the docs in my .htaccess

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

And I also have some 301 redirects to redirect old site urls to new site urls:

Redirect 301 /projects.html https://chase-erwin.com/about
Redirect 301 /collections.html https://chase-erwin.com/fabrics
Redirect 301 /arctic.html https://chase-erwin.com/fabrics
Redirect 301 /news.html https://chase-erwin.com/blog
Redirect 301 /about.html https://chase-erwin.com/about
Redirect 301 /contact.html https://chase-erwin.com/contact

I have also tried adding the additional line to rewrite rules:

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

This correctly resolves https://chase-erwin.com to https://chase-erwin.com, however I get a 403 Forbidden - You don't have permission to access / on this server. error which I assume is because there is no index file. Any ideas?

My home page is simply home in templates/pages folder

Hamish Irving

Hamish Irving 1 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there any state where it works as you expect?

Unfortunately not, and I have been trying different options for a while..

The other pages work as they should i.e. https://chase-erwin.com/about, just not the homepage.

Any ideas? My clients site is currently down due to this issue

Found it - the issue has been fixed by commenting out the following lines in my .htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
</IfModule>

They are to rewrite www.example.com → example.com, don't know why the conflict (I'm no rewrite expert), but problem solved for now albeit with 'ugly' URL's