Could it be something with Apache under MAMP, that needs to be set up to accept .htaccess redirects or something? Or should the .htaccess file for my particular setup be modified somehow, maybe to accept MAMP/Apache running on port 8888 or ... I don’t know, I’m out of my league here
I do not use MAMP, so I do not know whether it is configured out of the box to allow .htaccess. But the window you are showing is accessing the resource with file:// and not http://, so it’s not even going through Apache. When you configured your site in Coda, did you give it a correct Root URL, and a Remote Root to the public html directory?
That is a general server error, from using either incorrect syntax in a .htaccess, or a rule that the server disallows or doesn’t understand. You may need to speak with your system administrator to sort the problem out, but you can post more details here about where you are using the .htaccess, (and a cut and paste of its full contents) and if there are noticeable errors, someone here might be able to help.
Have you used .htaccess rewrites on this server successfully before? Do you have any .htaccess in the web root that could be interfering? And I’m unclear as to when the preview appears without CSS and when you receive a 500 error. Ah, I see your screenshot that you added to your post. That is normal and what you would see when the preview is just looking at the template file. The point of the .htaccess rewrites is for it to use your actual site for the preview and not just the template file. If you see that, it means you either have no .htaccess in place, or the rewrite is not occurring.
the error 500 is away and yes, i use a htaccess to move the index.php in the url and it is working
Your .htaccess in your web root could be interfering and causing the 500 errors. Try removing it entirely and just leaving the .htaccess in your template folder. Also, post your web root .htaccess file contents here. Please use a pMcode code block so that all characters are represented without transformation.
The URL in the preview address bar should not change unless a redirect (not a rewrite) is occurring. Please try it after completely removing your .htaccess from your web root, and again, please post its contents here.
The 1.0.1 update to Coda, released yesterday, have resolved my MAMP/Coda problems. There is now a “Local URL” field in the Site Setup section, specifically for users who run Coda with a local webserver.
Just curious. Could there be security implications by 1) saving templates to file into a 777 directory and 2) accessing them via a third party software?
Just curious. Could there be security implications by 1) saving templates to file into a 777 directory and 2) accessing them via a third party software?
No more than you’d have by accessing them via an FTP application or web browser, which is what’s really going on behind the scenes here.