Installing mooSocial without mod_rewrite

I know cakephp and I am following https://moosocial.com/wiki/doku.php?id=how_to:install_moosocial steps.

It seems to be I have mod_write issues. So I use cakephp method Configure::write('App.baseUrl', env('SCRIPT_NAME')); and delete all .htaccesss


But admin panel don't work when I am doing this.
Posted in General Discussion on 10/27/16 at 14:56
Comments (6)
Layla  
Duy Duy (mooTechnicalTeam) Kent Lam (mooSupport) Mark

Can someone help me with this: I almost fixed the .htaccess bug it seems in HTTP CakePHP will add /app/webroot to the URL. How to get rid of that?

If I go to view-source:https://www.xxxxxxx.com/users

I see

<meta property="og:url" content="https://www.xxxxxx.com/app/webroot/users"; />
<link rel="canonical" href="https://www.xxxxxx.com/app/webroot/users"; />

etc..

But in HTTP I get the right one without /app/webroot/ H...  more
Layla  
Because of /app/webroot added to all url's it won't work I think
Layla  
By the way I am using a shared hosting, so it must be done in .htaccess
Layla  
Ryan Nguyen DirectorySlash Off don't work... Please help!
Our script requires "URL Rewriting" (For more information , you can check http://book.cakephp.org/2.0/en/installation/url-rewriting.html ) . In case you try to disable it by using "Configure::write('App.baseUrl', env('SCRIPT_NAME' ))" , we don't sure that our script works correctly .
Layla  
I fixed it in index.php and overwrited all $_SERVER and $_ENV globals with clean URL.

But I have a new problem right now: how came minify is using unsecure http:// urls? I clear cache multiple times! And SSL is enabled in admin panel. But not worked, so I patched MinifyHelper.php with

foreach ($paths as $cssFile) {
$retFileNames .= '<link rel="stylesheet" type="text/css" href="/'.$cssFile.'">';
}
return $retFileNames;

But I want to use minify with https:// protocol for images such a...  more
No login
Login or register to post your comment
Cookies on mooCommunity - Social Networking Script.
This site uses cookies to store your information on your computer.