mod_rewrite on AppServ

mod_rewrite on AppServ

am 19.01.2008 07:39:24 von Raistlin Majere

I am using:

AppServ 2.5.9

(Apache 2.2.4
PHP 5.2.3
MySQL 5.0.45
phpMyAdmin-2.10.2)

CakePHP 1.1.19.6305

I need to configure Apache to use pretty URLs like:

www.example.com/controllername/actionname/param

The CakePHP manual says:

"Make sure that an .htaccess override is allowed: in your httpd.conf,
you should have a section that defines a section for each Directory on
your server. Make sure the AllowOverride is set to All for the correct
Directory."

Where is that section? How do I set AllowOverride to All?

"Make sure you are loading up mod_rewrite correctly! You should see
something like LoadModule rewrite_module libexec/httpd/mod_rewrite.so
and AddModule mod_rewrite.c in your httpd.conf."

I searched for "libexec/httpd/mod_rewrite.so" and it is not in
httpd.conf.

I searched for "AddModule mod_rewrite.c" and it is notin httpd.conf.

What should I do?

Re: mod_rewrite on AppServ

am 19.01.2008 08:39:33 von unknown

Post removed (X-No-Archive: yes)

Re: mod_rewrite on AppServ

am 28.01.2008 22:09:55 von Raistlin Majere

On Jan 19, 3:39 am, Raistlin Majere wrote:
> I am using:
>
> AppServ 2.5.9
>
> (Apache 2.2.4
> PHP 5.2.3
> MySQL 5.0.45
> phpMyAdmin-2.10.2)
>
> CakePHP 1.1.19.6305
>
> I need to configure Apache to use pretty URLs like:
>
> www.example.com/controllername/actionname/param
>
> The CakePHP manual says:
>
> "Make sure that an .htaccess override is allowed: in your httpd.conf,
> you should have a section that defines a section for each Directory on
> your server. Make sure the AllowOverride is set to All for the correct
> Directory."
>
> Where is that section? How do I set AllowOverride to All?
>
> "Make sure you are loading upmod_rewritecorrectly! You should see
> something like LoadModule rewrite_module libexec/httpd/mod_rewrite.so
> and AddModulemod_rewrite.c in your httpd.conf."
>
> I searched for "libexec/httpd/mod_rewrite.so" and it is not in
> httpd.conf.
>
> I searched for "AddModulemod_rewrite.c" and it is notin httpd.conf.
>
> What should I do?

Sharing the solution...

It was to uncomment "LoadModule rewrite_module modules/mod_rewrite.so"
and replace "Allow Override None" with "Allow Override All".