[FX.php List] [OFF] Rewrite for forcing http to https possible?

biscuit technologies biscuit.tech at gmail.com
Thu Sep 11 17:44:56 MDT 2008


There's a couple of things to look into. I'm on 10.4.11 and using entropy's
php, so you might have some differences, but this is what I just did.
go to /etc/httpd/httpd.conf using your preferred text editor (for simplicity
sake I used nano) and do a find (cntl-w, ("where")) for mod_rewrite and
check that it isn't commented out. Mine was fine.

upload the rewrite test to your /Library/Webserver/Documents folder with the
sample php file and sample .htaccess file and if needed do a sudo apachectl
restart graceful and give it a try. on my little mini it seems to work ok.

if you are accessing a user site folder you'll need to adjust the settings
in /etc/httpd/users/youruser.conf and that's explained more or less well at
http://michaelkrol.com/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/ but
to be honest I've had a lot easier time always using the root
(/Library/Webserver/Documents) directory for serving custom stuff.

- David

On Thu, Sep 11, 2008 at 4:28 PM, Troy Meyers <tcmeyers at troymeyers.com>wrote:

> David,
>
> Thank you very much.
>
> Sure enough, that test indicates that mod_rewrite is not on. I could have
> sworn I made sure it was. The phpinfo page indicates the module is loaded,
> but I guess that might not be the same as enabling it. Off the top of your
> head, what would the enabling line (in httpd.conf ?) look like?
>
> -Troy
>
> > hmm, it works for me.this page gives instructions for how to test for
> > mod_rewrite:
> >
> >
> http://www.wallpaperama.com/forums/how-to-test-check-if-mod-rewrite-is-enabled-t40.html
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/ae6133b9/attachment.html


More information about the FX.php_List mailing list