Having issues removing that index.php. Tried all possible solutions with no luck :( |
[eluser]Unknown[/eluser]
Hello Forum, Can someone please help? I've been at this for hours with no luck and would really appreciate some help. First off I am using MAMP Pro with SSL test env. So CI is running on https:// Here is my config URL snippet Code: /* Here is what my .htaccess looks like. Code: RewriteEngine on Here is what my current load test looks like. https://mysite/ <-- Home Controller loads. https://mysite/index.php/home <-- Home controller loads. https://mysite/home <-- FAIL. Home page does not load. Could someone help me with this please? I'm not sure how to proceed with this issue. Thank you for reading.
[eluser]ahmad saad[/eluser]
Hi, try this in ur .htaccess file and let me know. Code: <IfModule mod_rewrite.c> Regard's
[eluser]Unknown[/eluser]
[quote author="ahmad saad" date="1394412463"]Hi, try this in ur .htaccess file and let me know. Code: <IfModule mod_rewrite.c> Regard's[/quote] Hi ahmad saad, doesn't work Code: Not Found Can someone verify if I have the .htaccess in the right structure? site -|system -|application -|-|.htaccess the .htaccess file resides in the application folder within the application folder. So the path is site/application/.htaccess..is this correct? Thank you again for all the help.
[eluser]ahmad saad[/eluser]
Hi, as I think u must but it in the root doucment , and if u install it in subfolder u must put the .htaccess in this subfolder and remove "/" before index.php so it will be: Code: RewriteRule ^(.*)$ index.php/$1 [L] Regard's.
[eluser]InsiteFX[/eluser]
This is the one I use from FuelPHP, works for me everytime. Code: <IfModule mod_rewrite.c>
[eluser]micfai[/eluser]
In the virtualhost you have to allow overrides for the directory. By default its usually AllowOverride None. Change that to AllowOverrider All
[eluser]InsiteFX[/eluser]
If you look at my .htaccess file AllowOveride All is there its just remarked out.
[eluser]1cookie[/eluser]
Here's a simple one that works for me: Code: # Allows us to remove index.php from the URL Do you have root access to you're server? I would also look at you're server configuration: Code: <Directory /var/www/public_html /> I thought CodeIgniter worked this out for itself: Code: # /application/config/config.php
[eluser]Tim Brownlaw[/eluser]
I was just checking the mod_rewrite settings on MAMP... It appears that it is enabled by default (from what I've read ). Usually in a new install like WAMP or LAMP you need to enable it as it's off by default. Your htaccess file has to be in your document root.. The same folder as your index.php above your application folder and it's friends! Also check in your /Applications/MAMP/conf/apache/httpd.conf that you have <Directory <path>> Options Indexes FollowSymLinks AllowOverride All </Directory> Where <path> is the folder path above your websites.. For instance , if you have your sites as /home/<sitename>/public_html you would set <path> to be /home/ That way those settings will apply to all the folders above /home/... So make sure you have that correct and when you make any changes to your servers settings - Make Sure you always restart the server! Cheers Tim |
Welcome Guest, Not a member yet? Register Sign In |