FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

.htaccess

Feed 19 posts, 7 voices

Avatar
2 posts

Hi all,
Installed Frog today after using Wordpress for a number of years. Having a bit of an issue with the .htaccess file though. I followed all the instructions listed in the right order.

http://www.madebyfrog.com/docs/how-to/remove-the-question-mark-from-the-url.html

I changed the Rewrite base from RewriteBase /frog/ to RewriteBase / because I have Frog installed in my root domain at www.cormacmoylan.com

However, when I change the file name of the htaccess file and alter the config.php to true I get an Internal Server Error
message when I access the site.

I’m not sure why this happens as I had permalinks enabled with Wordpress so I doubt it’s an apache issue but I’m not sure.

Any ideas?

 
Avatar
76 posts

Hi cormac

The 500 Internal Server Error can happen due to certain incompatible entries in your .htaccess file. Are you able to post the contents of yours here for us to look at?

 
Avatar
2 posts

Hi Craig, sure. This is the htaccess file that causes the error:

php_flag magic_quotes_gpc off
AddDefaultCharset UTF-8
Options -Indexes +FollowSymLinks

<IfModule mod_rewrite.c> RewriteEngine On

RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^admin(.*)$ admin/index.php?$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php?PAGE=$1 [L,QSA]

</IfModule>

 
Avatar
76 posts

Try removing (or just commenting-out, with a # symbol) the first line – the php_flag… bit, and see if that makes a difference.

If it’s a Unix/Linux server, sometimes they require the .htaccess file has appropriate permissions applied – usually ‘755’, or rwxr-xr-x. Something else to check too :)

 
Avatar
2 posts

That’s great Craig. Thanks a lot.
Working now.

 
Avatar
10 posts

I didn’t want to open a new topic for this question but. I’m running MAMP on OSX 10.5 when I try to remove to _ before the _.htacces it won’t let me anyone got an idea how to do this?

 
Avatar
1493 posts

Hi jeca – you could try making a new file called .htaccess and copying the contents into it. I’ve had that renaming obstacle once or twice, and got around it that way.

 
Avatar
48 posts

you can do that easily from the terminal.
i’m not sure for unix systems how it goes exactly, but on windows you write this:
1. open terminal
2. navigate to a folder where _.htaccess file is and then type

ren _.htaccess .htaccess

Probably is something easy like here. Google it!

 
Avatar
76 posts

On a Mac, you would probably do this:

mv _.htaccess .htaccess
 
Avatar
10 posts

thx craig it worked, just had to set write a command to set my invisble files to visible. & use the rewrite command!

 
Avatar
18 posts

Tx Craig
Commenting the first line – the php_flag … really helped me with the internal server error.

What does this line normally do?

 
Avatar
1 posts

Aug 27, 2009 15:24
Avatar
Craig
76 posts

Try removing (or just commenting-out, with a # symbol) the first line – the php_flag… bit, and see if that makes a difference.

If it’s a Unix/Linux server, sometimes they require the .htaccess file has appropriate permissions applied – usually ‘755’, or rwxr-xr-x. Something else to check too :)

————————————————————————-

How if the both suggestions not working?