Welcome Guest, Not a member yet? Register   Sign In
404 error when i hosted my site in server
#1

[eluser]abinmd[/eluser]
Am new to codignitor and i developed a small website using this.My site is working fine in
localhost.but when i move my website to the web server, the first Welcome controller is working fine,because i got my first login page.when i click my login(Welcome/login).it gives 404 error(hosting server 404 page) .Even it doesn't give any validation errors.

i hosted this in to a subdomain(www.subdomain.example.com)
and i changed base_url,like this domain name.Using HTACCESS file for rewriting url.

I changed the $index_page="index.php" to $index_page="", for removing index.php from URL.
this working well in localhost., On the server i checked with $index_page then it gives codignator 404 error page.


The only difference with my localhost is , i hosted it in a subdomain.It may be problem with HTACCESS
please help me.

attaching my HTACCESS file
#2

[eluser]InsiteFX[/eluser]
Did you change your base_url to point to the correct path?
#3

[eluser]abinmd[/eluser]
yes. i changed it to the site url.
#4

[eluser]InsiteFX[/eluser]
I have 2 sub domains on my main site and I just access them as http://www.name.com
and they work fine
#5

[eluser]abinmd[/eluser]
every time i got 404 error page from the server(hosting provider template), not from the Codeignitor.


am attaching my server phpinfo
#6

[eluser]abinmd[/eluser]
am attaching my server phpinfo
#7

[eluser]Bart v B[/eluser]
Did you also tried to do it with some default settings?
so, not remove the index.php and then go to http://www.domain.tld/index.php/welcome/login .
Or in your case, http://subdomain.domain.tld/index.php/welcome/login.

I am not into windows servers, but what i can remember, is that you need for mod_rewrite, isapi_something installed.
I don't see them in your php.ini, so i think you can better ask your provider to install the mod_rewrite module.
Even better is to get a linux server. But that's my opinion. Wink




Theme © iAndrew 2016 - Forum software by © MyBB