SocialEngine 4: .Htaccess Incorrect Directory

Are you having issues with SocialEngine not loading on your Hosting provider?Andrew - SocialEngine

If your root directory is known as public this could be the problem follow the information below to get around the problem.

The .htaccess file used by SocialEngine has the following line:

RewriteCond %{REQUEST_FILENAME} public\/ [OR]

This condition matches if SocialEngine is installed in a directory tree containing a directory name ending in “public”. So, it fails if, for example, the web root directory is called “public”. Some hosting control panels like ServerPilot create sites with a web root called “public”.

The correct fix is change REQUEST_FILENAME to REQUEST_URI so that the above line reads:

RewriteCond %{REQUEST_URI} public\/ [OR]

The justification for why REQUEST_URI is correct is that it should be looking for “public” in the request, not in the full directory path on the server. The Apache docs describe REQUEST_FILENAME as “The full local filesystem path to the file or script matching the request” whereas REQUEST_URI is “The path component of the requested URI.”

This would have now fixed your problem

Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *