I’ve been using a Memset VPS for a while now without problem, until I started noticing permissions problems with CE Image - it turned out that the server was set up using DSO PHP and so newly made files were being created with no user:group and so set to 99:99 which meant deployments would stop working.
I got my server switched over to suPHP to resolve the user:group permissions errors (which it has done) but it’s introduced other problems.
A series of sites in development have all stopped working in terms of the URLs re-writing. The htaccess file I’d been using was no longer redirecting pages correctly, eg sitename.com/about was staying on the home page, eg http://www.mdwntr.com/profiles/julieta_lopes
Incidentally, if I use http://www.mdwntr.com/index.php/profiles/julieta_lopes as the URL, the page does work.
The standard htaccess file I use is:
# secure .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
#################################################################
# Add a trailing slash to paths without an extension
# Does not redirect for POST items like SafeCracker and the comment form
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]
# Remove index.php
RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php/$1 [L]
#################################################################
# AddHandler php5-script .php
...but I’ve tried various other .htaccess files including very cut down ones to just the index.php rewrite, using the index.php? and using [L,R], none solve the problem.
I’ve also noticed that other sites on my server are not breaking, specifically sites that were built before I started using NSM bootstrap to handle deployments. If I take a site that isn’t working correctly and remove the bootstrap file (and remove the extra line from the bottom of system/expressionengine/config/config.php and database.php ), those sites do now work.
I’ve been in touch so far with:
various EE devs
Memset (hosting)
cPanel
NSM
...no one is able to figure out what is going on.
I know this probably shouldn’t be in the EE tech support section as you dont support index.php rewrites, so please feel free to move it to where it should be - I couldn’t see the right place.
If anyone has any idea what is going on, I would be massively grateful as it’s holding several sites up from going live.