Welcome Guest, Not a member yet? Register   Sign In
working htaccess for titer 3 on local xampp
#5

(This post was last modified: 06-05-2017, 02:18 AM by Corsari.)

PREMISE: thank you to all of you for being patient , I'm learning both about php and codeigniter and I understand this will be a long challenge :-)

Hello Paradinight thank you for the links

please allow me to say that placed where they are, they are not helping a newbie that is following the official tutorial on the official Codeigniter guide.

Especially the first one, because it is hinting how to remove the the index.php from URL, this is misleading.

My personal opinion about htaccess (so far for what I understand) is that this should be a SHARP step of the official Codeigniter tutorial and it should be an highlighted step which should teach something like

Quote:"for the examples in this tutorial to work, so for  the routes to work, you must create an .htaccess file in the root of your project and insert the following rules..."

do you agree?
Unless Codeigniter may work either without an .htaccess , if this is the case, sorry for pointing this out. But anyway, following the tutorial it does develop in a manner that makes htacces mandatory, so for the tutorial itself, it is a needed step.

I mean, read here https://codeigniter.com/user_guide/tutor...pages.html
I kindly ask you to be objective: does this teaches and inform that the htaccess modification is a MUST? Dodgy

Otherwise many newbies like me (hard of comprehension) , will get stuck as soon they create the first Controller Confused

Also,

referred to my P.S.

I have read the links, but I don't find any distinction for an htaccess for projects resident in a subdir of e.g. a local xampp or in the root of a local xampp and the same for a real webserver with the same distinction, so a real www like www.myserver.ext with Apache and codeigniter app in a subdir (first case) and as root of the www.myserver.ext (second case)

Is the snippet

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

expected to work for all the 4 cases? Or are they needed different .htaccess rewrite conditions and rules for them?
- codeigniter as subdir in a local xampp
- codeigniter as root in a local xampp
- codeigniter as subdir in a real FQD www Apache server
- codeigniter as root in a real FQD www Apache server


Thank you for clarifying
Reply


Messages In This Thread
RE: working htaccess for titer 3 on local xampp - by Corsari - 06-05-2017, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB