Welcome Guest, Not a member yet? Register   Sign In
Routing question
#1

I installed CodeIgniter in my root domain and I'm building my first web app. However, I have a folder of another web app (Sitelok) in that domain as well. However, Sitelok is not loading to its log in screen and I suspect it's related to my routing in the CodeIgniter app. How do I fix this?
Reply
#2

@ronniebel,

Does your other web app have a config file? Maybe you need to reset it.

How was the user routed to the other site before you installed CI? htaccess? index.php/html redirected?
Reply
#3

You should give some information about this
Reply
#4

(08-01-2019, 07:56 AM)php_rocs Wrote: @ronniebel,

Does your other web app have a config file?  Maybe you need to reset it.

How was the user routed to the other site before you installed CI? htaccess? index.php/html redirected?
Yes, the .htacces file at the root did some rerouting. Here's what's in that file.

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png)
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteRule ^(.*)$ ./index.php/$1 [L]
Reply
#5

@ronniebel,

What about your config file for Sitelok? What is it configured too? My educated guess is that CI is fine but you probably need to reconfigure the subsite url info.
Reply
#6

It's working now.

Here is what was changed in the .htaccess file:

Before:
RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png)

After:
RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png|slpw)

I added the sitelock folder to the list of excluded folders for those url rewrites.
Reply
#7

@ronniebel,

I'm glad you figured it out.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB