2
Good morning....
I just implemented Codeigniter, but I can’t use user friendly url...
I try to pass parameters through Ajax, but I cannot due to URLS.
I’ve already removed the index.php
of the archive config.php
and changed the routs.php
I have already inserted the following code in htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]]
What mistake does it make?
– Yure Pereira
How is your Ajax and what is the error returned in the request?
– Yure Pereira
error 404, the same happens if I try to access the function directly by url
– Thaina B.
$.ajax({ method: "POST", url: "<? php echo base_url('/login/realiza_login'); ? >", data: { login: login_front, password: password_front } }) });
– Thaina B.
Already tried to access the url directly by navagador, to see is working?
– Yure Pereira
You have set the $config['base_url'] variable to your website url?
– Yure Pereira