.htaccess with MAMP
December 21, 2006 3:45 PM   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 answers total) 1 user marked this as a favorite
 
Response by poster: 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]


Response by poster: 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


Response by poster: 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 A desire to join...   |   can i alter a sweater? Newer »
This thread is closed to new comments.