You are not logged in.

#1 2014-12-19 22:46:44

ginoboy
Member
From: Brazil
Registered: 2011-06-29
Posts: 9

URL Rewrite PHP module doesn't work!

Hi,

I activated the mod_rewrite in apache config file. Ok.

I created the .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

But my codeigniter application (and any other application) doesn't works!

My httpd-userdir.conf:

# Settings for user home directories
#
# Required module: mod_authz_core, mod_authz_host, mod_userdir

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.  Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/home/*/public_html">
    AllowOverride All
    Options FollowSymLinks
    Require method GET POST OPTIONS
</Directory>

I get the 404 error message.

What happens?

I always did my applications without rewriting url but now I'm wants to use and I can't sad

Thanks.

Offline

#2 2015-01-22 15:01:30

quimkaos
Member
Registered: 2014-09-27
Posts: 56

Re: URL Rewrite PHP module doesn't work!

Similar problem here... my .htaccess files with mod rewrite rules don't work... i searched a researched with no solutions. This is badly affecting my workflow

Last edited by quimkaos (2015-01-22 15:01:50)

Offline

Board footer

Powered by FluxBB