Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi, I'm pretty new to couchcms and going over the tutorials.

There is a part where I need to enable mod_rewrite on my server:
viewtopic.php?p=11832#p11832
On the test page, I am getting HTTP_MOD_REWRITE is not set message.

I am using MAMP, and don't know how to install the module. All I can find is rewrite_module on MAMP apache panel and it's enabled. Can anyone please tell me how to do this? Thanks.
Hi :)

I'll begin by saying that I'm a Windows guy and have no experience of MAMP.
Perhaps someone who has it would care to chip in please.

That said, if the apache panel says rewrite_module is enabled, you can try going ahead and turning on prettyURLs (as described in the docs - http://docs.couchcms.com/concepts/pretty-urls.html).

Please see and report what you get.

Thanks.
This is how you would enable mod_rewrite in MAMP. Open the MAMP start screen and find the link to phpinfo. Scroll down to the configuration where you'll find a list of "Loaded Modules". See if you find mod_rewrite listed.

If not, you need to enable it. Open MAMP/conf/apache/httpd.conf and find the line that enables the module.
Code: Select all
#LoadModule rewrite_module modules/mod_rewrite.so

Remove the hash mark to enable mod_rewrite.

You should also search the file for AllowOverride and make sure the setting for your .htaccess file is set to AllowOverride All.


Is that any help?
Thanks for your replies!
I think I figured it out. mod_rewrite is named rewrite_module on MAMP, and it's on by default.

Somehow the rewrite.php test on this page (viewtopic.php?p=11832#p11832) doesn't work with MAMP (it keeps showing HTTP_MOD_REWRITE is not set) when in actuality it works. So everything is good again. Thanks.
4 posts Page 1 of 1