Hi all
I’ve got a site that uses a fairly customised .htaccess file - the host (34SP) edited the default one to get a few things (mainly removing index.php) working. It now looks like this:
<IfModule mod_rewrite.c>
# Enable Apache's RewriteEngine
RewriteEngine On
# Add Trailing Slashes to URLs
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+[^/])$ /$1/ [R=301,L]
# ExpressionEngine Remove index.php from URLs
# RewriteCond %{REQUEST_METHOD} !=POST <- I COMMENTED THIS OUT MYSELF TO GET FORMS WORKING
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>My client’s just noticed that the link in the top right of the control panel which takes you to the front-end of the site doesn’t work. Clicking it takes you to http://www.mysite.com/?URL=http://www.mysite.com/ - I guess that’s where it’s meant to point, but then EE’s meant to do something clever and pass that on to http://www.mysite.com/ ?
My first guess was that something we edited in the .htaccess file might have broken that functionality. Any ideas? I’m pretty stupid with .htaccess and I’m not sure how EE handles that link, so not really sure where to start!
Thanks, Frank