Note that there are some explanatory texts on larger screens.

plurals
  1. POCodeIgniter deleting index.php with htaccess after normal installation of apache 2.4
    text
    copied!<p>I have installed PHP, Mysql and Apache on windows server 2008 R2 as <a href="http://lifeofageekadmin.com/how-install-apache-2-4-php-5-4-and-mysql-5-5-21-on-windows-7/" rel="nofollow">this link</a> provided exactly.</p> <p>It's working like a charm, but the problem is with my <code>.htaccess</code> to remove <code>index.php</code>.</p> <p>My <code>.htaccess</code> file includes the following:</p> <pre><code> &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase /HR/ #Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been possible. #'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] #When your application folder isn't in the system folder #This snippet prevents user access to the application folder #Submitted by: Fabdrol #Rename 'application' to your applications folder name. RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] &lt;/IfModule&gt; &lt;IfModule !mod_rewrite.c&gt; # If we don't have mod_rewrite installed, all 404's # can be sent to index.php, and everything works as normal. # Submitted by: ElliotHaughin ErrorDocument 404 /index.php &lt;/IfModule&gt; </code></pre> <p>I already enabled <code>mod_rewrite</code> in apache. but I'm getting 500 internal server error.</p> <p><strong>NOTE:</strong> when changing <code>AllowOverRide All</code> to <code>None</code> in Document root like here:</p> <pre><code># AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None </code></pre> <p>the <code>500 internal error</code> disappears but the <code>.htaccess</code> does not work!!! then I should add the <code>index.php</code> for the link to work.</p> <p>Note: when <code>AllowIverRide All</code> I get this error:</p> <pre><code>[Tue Feb 19 18:20:10.988018 2013] [core:alert] [pid 3940:tid 844] [client 127.0.0.1:49513] C:/Apache24/htdocs/HR/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context </code></pre> <p>Any help will be Appreciated. TY. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload