Welcome Guest, Not a member yet? Register   Sign In
About deploy a Codeigniter Web in Azure
#1
Brick 

Hi Everybody!!

I need some help, i'm trying to deploy a codeigniter proyect on azure (web app), but i having some troubles, first i have the files like that:

- public
    - myproject
         - application
               - config
                     - database.php
                     - config.php
                     - routes.php
         - system
         - template
                - js
                - css
         - index.php
         - web.config
         - .htaccess

When i accesing my url (https://xpbc-app-2018.azurewebsites.net/ ) i get a 404 error, so i have to add /login to my page to load... and css and js files are not found.. 

this is my web.config:
Code:
<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
     <system.webServer>
       <rewrite>
         <rules>
            <rule name="Imported Rule 1" stopProcessing="true">
               <match url="^(.*)$" />
               <action type="Rewrite" url="/index.php/{R:1}" />
            </rule>
          </rules>
        </rewrite>
      </system.webServer>
</configuration>

and this is my .htaccess


Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt|sitemap\.xml|template)
RewriteRule ^(.*)$ index.php/$1 [L]


HELP!! im not understanding nothing.. a guide could be my salvation.  Some advices please..

Thanks to all
(Sorry for my poor english)
Reply


Messages In This Thread
About deploy a Codeigniter Web in Azure - by Aryam - 09-23-2018, 08:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB