Welcome Guest, Not a member yet? Register   Sign In
godaddy problem?
#1

[eluser]Frank Rocco[/eluser]
Hello,

I have an CI app on godaddy that is running fine.

I uploaded another CI app and when I try and access it, I am redirected to the first CI app.

Orginal CI app.

Directory CI1

New Directory

CI2

http://whatever/CI2 sends me to http://whatever/CI1

Any ideas?

Thanks
#2

[eluser]Bas Vermeulen[/eluser]
Did you update your base_url at your config file? If so, did you update your .htaccess file if you use any?
#3

[eluser]Frank Rocco[/eluser]
.htaccess is in CI1

and CI2

Both are configured to point correctly.
#4

[eluser]Frank Rocco[/eluser]
Here is the .htaccess settings.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|docs|scripts|system)
RewriteRule ^(.*)$ /ci/index.php?/$1 [L]
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ "/ntww/index.php/$1" [L]
#5

[eluser]Bas Vermeulen[/eluser]
To me it really sounds like you forgot to update the base_url in your config file, I can't think of anything else that would cause this...
#6

[eluser]Frank Rocco[/eluser]
No, base_url are different for each one.
#7

[eluser]Frank Rocco[/eluser]
I resolved this thanks to this forum.

Here is the .htaccess
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /ci/index.php?/$1 [L]
#8

[eluser]Bas Vermeulen[/eluser]
K, good, that's indeed how my .htaccess looks, didn't thought that would cause what you experienced, good to know Smile
#9

[eluser]Frank Rocco[/eluser]
Having another problem, now my development system uses localhost in the base_url.
When I try and run the app, I am redirected to the lnline production site.




Theme © iAndrew 2016 - Forum software by © MyBB