Knowledge Base
All Categories How to's Apache .htaccess Configuration

Apache .htaccess Configuration

A common issue is the .htaccess file which is needed to rewrite all URL's to make them readable.  
You can find the .htaccess file in the root folder of Freelance Cockpit. It's the same folder where the index.php file is located.

If you are using any OSX make sure you have enabled hidden files on your MAC.

The content of the .htaccess can be different from one server to another, so you might want to try one of configurations below:

<IfModule mod_rewrite.c> 
RewriteEngine On 
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /index.php?/$1 [L] 
</IfModule>
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]

Was this article helpful?

Thanks for your feedback!