Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite what is it and what does it affect?
#1

(This post was last modified: 11-17-2021, 06:39 AM by richb201.)

I was told by someone reviewing my issue with my website that the problem is with the lack of setting mod_rewrite. What is the affect of mod_rewrite on CI3 on an apache  web server?
proof that an old dog can learn new tricks
Reply
#2

It allows you to redirect an url to a file without having the filename in the url. With CodeIgniter you need mod_rewrite to remove index.php from the url. The rules in .htacess will tell Apache to redirect the queries to index.php, which is the front controller. Read this page: https://codeigniter.com/userguide3/gener...x-php-file

So you can have something like
Code:
http://localhost/blog/whatever
...instead of
Code:
http://localhost/index.php/blog/whatever
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB