Home » Questions » Computers [ Ask a new question ]

htaccess not working on Mac when copied, but works from a NTFS partition

htaccess not working on Mac when copied, but works from a NTFS partition

I run Apache on Mac OS X (XAMPP) for a site that uses .htaccess to have URLs like "domain.com/site/section/etc".

Asked by: Guest | Views: 330
Total answers/comments: 3
Guest [Entry]

Sorry! I had the apache configured to now allow .htaccess override. :(
Guest [Entry]

"In Terminal, what do the following commands give you?

ls -l .htaccess
file .htaccess

And likewise for the NTFS version?

And are you sure there's no paths (references to directories) within that file?

(And, sorry to ask: are you sure you actually copied the file, this being a hidden file on Unix? From Terminal, use something like cp -a old-dir new-dir, using -a to preserve the file dates and permissions, and without any /* to copy hidden files as well.)

What if you ensure there's an error (just some typo suffices) in the .htaccess file on your Mac? Do you get a 500 Internal Server error when going to some page then? (Just to determine if Apache is ignoring the .htaccess altogether when the Virtual Host is configured to look at your Mac's partition, or is only ignoring parts of its contents then...)

And are both sites in the same relative location of Apache's root? (Like .../http_docs/ versus ~/Sites/ for both, and not ~/Sites/some/path on your Mac, which could then have other .htaccess files at some lower level)?"
Kjkboe [Entry]

buy atorvastatin 20mg online cheap <a href="https://lipiws.top/">buy generic lipitor 20mg</a> order atorvastatin 40mg sale