Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > mod_rewrite

mod_rewrite
Thread Tools
jay3ld
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Apr 16, 2006, 12:49 AM
 
I wanted to do some testing with mod_rewrite before i put it on the web. So using my mac I made sure mod_rewrite was on.
Now the problem is my mac isn't wanting to use mod rewrite. I have one on my online website and its working just fine. copy the same stuff over from the .htaccess and it doesn't work on the test site (my mac).
Has anyone tried to use mod_rewrite on a mac? anything i need to change? I already made sure it was running in my httpd.conf in etc/httpd/ and restarted my web server twice... no luck.
You shouldn't make fun of nerds... you'll be working for one some day.
     
Exizl del Fuego
Junior Member
Join Date: Oct 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Apr 18, 2006, 07:35 PM
 
Where is your local site stored? Is it in your user directory? If so, you have to enable mod_rewrite specifically for a user's web directory. There's a lot of info on Google about Mac )S X + Apache + mod_rewrite. Here's a quick one I grabbed: http://www.clagnut.com/blog/350/

Hope that helps!
     
jay3ld  (op)
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Apr 18, 2006, 07:55 PM
 
how odd. that worked. I thought I had it enabled in my httpd.conf
I dont got user.conf thouh. i disabled that user ~ thing because Im the only web designer on my network
You shouldn't make fun of nerds... you'll be working for one some day.
     
Exizl del Fuego
Junior Member
Join Date: Oct 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Apr 18, 2006, 08:01 PM
 
Is Apache's Document Root still set to /Library/WebServer/Documents? If I understand it correctly, httpd.conf's mod_rewrite settings will only apply to Apache's document root. If you want it applied elsewhere, you have to tell it specifically. In OSX Client, this means the user.conf, in OSX Server this means the site.conf.

I usually just place my websites in /Library/WebServer/Documents, and symlink the site's directory into the corresponding project's folder located elsewhere.
     
jay3ld  (op)
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Apr 18, 2006, 10:29 PM
 
no. its set to my users site folder. but its working. so i guess disabling that ~user stuff might of fixed it. but in the users folder under etc/httpd/ there is no users files.. hmmm.
You shouldn't make fun of nerds... you'll be working for one some day.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:01 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,