Welcome Guest, Not a member yet? Register   Sign In
404 Not Found template loads when Tilde (~) is in URL
#1

[eluser]bhensonweb[/eluser]
Hi,

I am migrating a web application to a new server. I am attempting to get it set up on the new server before the domain DNS information is changed. So I am using the IP address to access the website. I have updated the paths in the config file accordingly.

But now the 404 Template is loading, so I assume it cannot find the Controller.

The only thing different here is that the URL now contains a tilde (~) character for example:

http://00.00.0.0/~user/myapp/index.php?/mycontroller

I also tested this on the original server using the IP version of the URL instead of the domain name and got the same problem.

It seems to me that the tilde breaks something. The tilde is in the allowed URI characters list as per default.

I am running CI 1.7.2.

Any help would be appreciated, thanks.
#2

[eluser]bhensonweb[/eluser]
Update:

I noticed that I had changed the uri_protocol in the config file to "REQUEST_URI" as I was attempting to remove the index.php? from the url.

Changing this back to "AUTO" seems to have fixed the problem.

Hopefully at least someone can learn something from this Tongue




Theme © iAndrew 2016 - Forum software by © MyBB