.htaccess with MAMP
December 21, 2006 3:45 PM   RSS feed for this thread Subscribe

.htaccess with MAMP

I'm running an install of MAMP on my laptop as per an earlier question.

I updated the .htaccess file by copying and pasting from the site I was copying. Now it doesn't work. All I remember about getting .htaccess to work last time is that it was a huge hassle to figure out.

Likely candidate for fixing is the RewriteBase line, but I've tried a couple things that haven't worked.

Friday morning, I'm supposed to bring this laptop with me to demo the site.
posted by RobotHero to computers & internet (6 comments total) 1 user marked this as a favorite
Here's a sample of what I've got in the .htaccess file now:

RewriteEngine on
#RewriteBase /
RewriteRule ^request.html$ demo/?q=node/10
RewriteRule ^pros.html$ demo/?q=node/16
posted by RobotHero at 3:47 PM on December 21, 2006


Make sure your httpd.conf has "allowoverride all", and not "none"


# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
posted by SirStan at 6:07 PM on December 21, 2006


Can you post a link to the earlier question? I'd like to try to help, if I can.
posted by Blazecock Pileon at 6:07 PM on December 21, 2006


If that doesnt help, make sure you have mod_rewrite installed correctly. if THAT doesnt work, toss your rewrite rules right into your httpd.conf file.
posted by SirStan at 6:07 PM on December 21, 2006 [1 favorite]


SirStan: I included that, (I assume I put it before my other code) and now I get an Internal Server Error. (I double-checked and I didn't misspell AllowOverride) But now that you mention it, I think the way I fixed it last time somehow involved AllowOverride


Blazecock: My previous question was just asking how to get . One of the answers suggested MAMP, which is what I am now using.
posted by RobotHero at 6:23 PM on December 21, 2006


Looks like it may have been a silly blank-space character conversion thing.

I re-typed the file while looking at the server's version instead of copying and pasting from the server's version, and now it works.
posted by RobotHero at 6:40 PM on December 21, 2006


« Older I just recently turned 25 and ...   |   can i get a sweater altered? i... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
Redirecting subdomain to https June 11, 2008
Regex woes. June 10, 2008
My readers don't understand how permalinks and... October 29, 2007
I'd like to redirect an entire directory to one... March 13, 2007
RewriteRule and Trailing Slashes July 15, 2005