url rewrites issue

Hi, I have copied all files as you say in documentation, in my subdomain root and im facing the following problem: Settings page, database, menu and module page return 404 error and in general every page with url Urls with public/core/ and /public/dashboard work fine. I have contact my hosting provider and they asked me to give them an example of url rewrites in nginx for Sximo 5. They don't use htacess files.

Regards George

  • 3 years ago


first do not use your domain setting as you did it wont work properly

and about htaccess the correct one is include into the package

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

Thank you for reply, i will give the code to my hosting provider. Also what do you mean "do not use domain setting as you did it wont work properly?

Actually what your host gave you as FTP access ? did they gave you the direct html_public/ folder? or you have a root folder + /html_public/ or something similar?

in fact inside the package of sximo you have a public folder it's supposed to be the one that People can read from their browser

this about this configuration

---Root Folder

so if you have this configuration then put all sximo into root folder and the public on put into html_public

but it's not done you have to do some custom editing at your index.php located into public folder

require __DIR__.'/../bootstrap/autoload.php';
require '../setting.php';

you have to edit that part for sure it's load the file properly as expected into his proper folder on your hosting

Tell me about this :

did you installed all the files from zip into that folder? and did you edit them after installed ? like change directory location?

because if not then your propers url from that should be

Also i put full htaccess file here

this is for advanced user

i'm out for sleep :) in case you still having issue and if mango still not back i will able help you via teamviewer if needed

you can mail me at [email protected]

Good luck and hope you get it fixed today

The zip files has 3 folders. I transfered all files from the 1 folder in my /domainname/subdomain/ so there i have files and folders and one of them is public. I also edited the config file and changed url to http: // as it says in the documentation. I haven't change directory structure.

When i log in at Sximo, the url should be or At the begining i hade the second url but the user profile image was not displayed and i asked my hosting provider to change default folder to /public

Hi merovitas ,

if you want to remove public folder on your URL please follow this step

1 . edit your subdomain folder path to / public_html/mysubdomain/public

example folder hierarky on server

--- public_html
--- public_html/mysubdomain/
--- public_html/mysubdomain/public

From your case your url should be :

but you can tweak this for it's match to

if i'm not mistaken you have to cut all inside /public/ folder and past it at : / from there you have to edit the index.php and edit here the propers location of your file

just like so :

and you should ready to go don't forget to put the .htaccess into that folder (you can next delete the empty public folder it wont be used anymore)

also about nginx this should do the job

# nginx configuration 
location / {
        rewrite ^/(.*)/$ /$1 redirect;
        if (!-e $request_filename)
            rewrite ^(.*)$ /index.php break;

or even better as Mango said if you can ask hosting to edit (or maybe yourself you can do it on your Panel) the patch of your public access then edit it to :


instead of


and that should work also

Rewrites from my provider, it seems to work now.

location / {
rewrite ^/sximo/(images|css|js|fonts)/(.*)$ /public/sximo/$1/$2 break; rewrite ^/(uploads|img|css|js|font|app|vendors|assets|bower_components|assets|data)/(.*)$ /public/$1/$2 break; rewrite ^/(favicon\.ico|robots\.txt|sitemap\.xml)$ /public/$1 break; rewrite ^/(.*)$ /public/index.php?_url=/$1 last; }

Good news then :)

merovatis said:

Rewrites from my provider, it seems to work now.

location / {
rewrite ^/sximo/(images|css|js|fonts)/(.*)$ /public/sximo/$1/$2 break; rewrite ^/(uploads|img|css|js|font|app|vendors|assets|bower_components|assets|data)/(.*)$ /public/$1/$2 break; rewrite ^/(favicon\.ico|robots\.txt|sitemap\.xml)$ /public/$1 break; rewrite ^/(.*)$ /public/index.php?_url=/$1 last; }

Help me. I have a subdomain and my path is public_html / my subdomain / public get blank page