Moved CI-site redirects to old location |
[eluser]Jonathan Johansson[/eluser]
Hi! I'm having trouble with moving a CI-site from URL: www.mysite.com/codeignition to codeignition.mysite.com. Both URL's are hosted on same server. My browsers debug-feature reports: [HTTP/1.1 302 Moved Temporarily 16ms] and redirects to the old URL. I've updated every URL found in the CI-code that was referring to the old URL.
[eluser]Jonathan Johansson[/eluser]
[quote author="pickupman" date="1326857097"]I don't think it should make much difference, but it look like your index(default).php file is older. What version of CI are you using? Code: echo CI_VERSION; CI_VERSION = 1.7.2 [quote author="pickupman" date="1326857097"] Is your .htaccess file in the document root, or is it in the subdomain subfolder? Have you cleared your browser's cache? [/quote] Browser's cache is cleared. .htaccess file is in the root.
[eluser]pickupman[/eluser]
Regardless of this issue, I would update your CI version to the latest 2.1 unless you are trying to support PHP4. There have been a number of bug fixes along with some speed improvements. What happens if you try to access an actual filepath/resource that's in your subdomain that's not a PHP/CI file? (ie. codeignition.mysite.com/logo.jpg)
[eluser]Jonathan Johansson[/eluser]
[quote author="pickupman" date="1326898279"]Regardless of this issue, I would update your CI version to the latest 2.1 unless you are trying to support PHP4. There have been a number of bug fixes along with some speed improvements. What happens if you try to access an actual filepath/resource that's in your subdomain that's not a PHP/CI file? (ie. codeignition.mysite.com/logo.jpg) [/quote] Ok... Can I update directly from 1.7.2 to 2.1? I'm not the developer of this site and don't have the knowledge of (if any) custom changes made to the CI-files. There's no problem to access any other types of files in the subdomain.
[eluser]pickupman[/eluser]
Quote:Ok… Can I update directly from 1.7.2 to 2.1? I’m not the developer of this site and don’t have the knowledge of (if any) custom changes made to the CI-files.The user_guide has the instructions for [url="http://ellislab.com/codeigniter/user-guide/installation/upgrade_200.html"]Upgrade 1.7 to 2.x[/url] If you can access other files in the subdomain, your server and .htaccess should be okay. Try the upgrade and go from there.
[eluser]Jonathan Johansson[/eluser]
[quote author="pickupman" date="1326901432"] Quote:Ok… Can I update directly from 1.7.2 to 2.1? I’m not the developer of this site and don’t have the knowledge of (if any) custom changes made to the CI-files.The user_guide has the instructions for [url="http://ellislab.com/codeigniter/user-guide/installation/upgrade_200.html"]Upgrade 1.7 to 2.x[/url] If you can access other files in the subdomain, your server and .htaccess should be okay. Try the upgrade and go from there.[/quote] Thank you! I'll have a try with the upgrade! |
Welcome Guest, Not a member yet? Register Sign In |