went live - links not working anymore - please help |
[eluser]René Tuin[/eluser]
Hi, I have the same problem with my website. Only I don't know how too make the htaccess file. What need I too put in it, to make it work on my website. Greetz
[eluser]wiredesignz[/eluser]
@heymike, Your problem has nothing to do with .htaccess, Apache, url rewriting, or anything mentioned above. You simply cannot browse directly to a controller in the application/controllers directory. You always should call your application controllers via the CodeIgniter index.php (front controller) file Example: Code: http://domain.tld/index.php/controller/method/data EDIT: Apologies, I didn't see page 1 of this thread.
[eluser]René Tuin[/eluser]
[quote author="wiredesignz" date="1261411676"]@heymike, Your problem has nothing to do with .htaccess, Apache, url rewriting, or anything mentioned above. You simply cannot browse directly to a controller in the application/controllers directory. You always should call your application controllers via the CodeIgniter index.php (front controller) file Example: Code: http://domain.tld/index.php/controller/method/data We know that but everything after index.php is not taking. I have the same problem, and i'm not out off it. http://ellislab.com/forums/viewthread/13...15/#681474 He is talking about using htaccess too solved but I dont know how to??. Can someone help me out. Greetz
[eluser]wiredesignz[/eluser]
@René Tuin, Your webserver should work this way with a basic CodeIgniter installation, .htaccess is not required to make it work. Please provide more details of the errors you are receiving if any. Have you checked the $config['uri_protocol'] setting? an incorrect value here is a usual trap for first timers.
[eluser]René Tuin[/eluser]
[quote author="wiredesignz" date="1261414151"]Your webserver should work this way with a basic CodeIgniter installation, .htaccess is not required to make it work. Please provide more details of the errors you are receiving if any. Have you checked the $config['uri_protocol'] setting? an incorrect value here is a usual trap for first timers.[/quote] hi, I get the normal 404 error and not the 404 error of CI. this is working http://www.projecten.web-tech.nl/vacatur...=vacatures and this not http://www.projecten.web-tech.nl/vacatur.../vacatures the uri_protocol is set to auto but I have tried the other options without any result. Greetz
[eluser]wiredesignz[/eluser]
@René Tuin, Add this code to the top of the index.php file Code: print_r($_SERVER); then try calling again like so: Code: http://www.projecten.web-tech.nl/vacatures/index.php/vacatures/index and paste the results back here, Please try to use the forum [code] ... [/code] tags
[eluser]wiredesignz[/eluser]
I can see a result here myself: Code: http://www.projecten.web-tech.nl/vacatures/index.php But not if I call this url: (as you say) Code: http://www.projecten.web-tech.nl/vacatures/index.php/vacatures
[eluser]René Tuin[/eluser]
That's right But i have solved it with http://codeigniter.com/wiki/mod_rewrite/ Now is everything working. http://www.projecten.web-tech.nl/vacatures/vacatures Thx for the help. Greetz
[eluser]wiredesignz[/eluser]
It also works if you add a query (?) to the url, and is definitely a server configuration issue forcing you to use the query string. Code: http://www.projecten.web-tech.nl/vacatures/index.php?/vacatures
[eluser]René Tuin[/eluser]
Oke, thx so if I only add a ? to the url it also works. That's alot easier, if so than I us that. Greetz |
Welcome Guest, Not a member yet? Register Sign In |