I inserted
RewriteLog /home/investin/public_html/rewrite.log
RewriteLogLevel 9
into .htaccess and got an Internal Server Error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I checked the error log in CPanel and I do not see anything on this listed.
Additionally, you can see a list of installed mod's from CPanel - and nothing containing the word rewrite is listed. Not mod_rewrite, APACH::REWRITE... nothing, but the host insists that it is there. Here is what I got back from rackspace tech support during a chat session:
The account holder asked:
How do you test mod_rewrite? My client says that it is not available on the server...
(Rackspace)Laurence says:
it's mostly used in .htaccess -- commands to stop hotlinking etc
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName DenyUNKNOWCRAWLERS
AuthType Basic
that's mod_rewrite...
Try this:
1) Find out your IP
2) Put it in this file
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName DenyUNKNOWCRAWLERS
AuthType Basic
<LIMIT GET POST>
order allow,deny
deny from 193.126.122.158
deny from 193.173.28.106
allow from all
</Limit>
<Files .htaccess>
order allow,deny
deny from all
</Files>
3) Call it htaccess.txt
4) Upload it to the server
5) Rename it to .htaccess
Then see if you can access your site
I think this tech was way off base, but you guys would know better than I.
If I comment out the first line like below, nothing happens and the site runs like normal, but rewrite does not take affect and you see a blank directory listing. However, if I do not comment it out, the site freezes while the page tries to load.
#RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^(.*)forum/(.*)P([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?post=$3&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)P([0-9]+)-([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?post=$3&page=$4&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)C([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?category=$3&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)F([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?forum=$3&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)F([0-9]+)-([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?forum=$3&page=$4&t=search_engine [L,PT]
RewriteRule ^(.*)forum/?$ /cgi-bin/forum/gforum.cgi?t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)gforum.cgi /cgi-bin/forum/gforum.cgi?%{QUERY_STRING} [NS,L]
Everything is pointing IMO to rewrite not being on this box. However, rackspace is positive that it is installed on there.
RewriteLog /home/investin/public_html/rewrite.log
RewriteLogLevel 9
into .htaccess and got an Internal Server Error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I checked the error log in CPanel and I do not see anything on this listed.
Additionally, you can see a list of installed mod's from CPanel - and nothing containing the word rewrite is listed. Not mod_rewrite, APACH::REWRITE... nothing, but the host insists that it is there. Here is what I got back from rackspace tech support during a chat session:
The account holder asked:
How do you test mod_rewrite? My client says that it is not available on the server...
(Rackspace)Laurence says:
it's mostly used in .htaccess -- commands to stop hotlinking etc
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName DenyUNKNOWCRAWLERS
AuthType Basic
that's mod_rewrite...
Try this:
1) Find out your IP
2) Put it in this file
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName DenyUNKNOWCRAWLERS
AuthType Basic
<LIMIT GET POST>
order allow,deny
deny from 193.126.122.158
deny from 193.173.28.106
allow from all
</Limit>
<Files .htaccess>
order allow,deny
deny from all
</Files>
3) Call it htaccess.txt
4) Upload it to the server
5) Rename it to .htaccess
Then see if you can access your site
I think this tech was way off base, but you guys would know better than I.
If I comment out the first line like below, nothing happens and the site runs like normal, but rewrite does not take affect and you see a blank directory listing. However, if I do not comment it out, the site freezes while the page tries to load.
#RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^(.*)forum/(.*)P([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?post=$3&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)P([0-9]+)-([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?post=$3&page=$4&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)C([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?category=$3&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)F([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?forum=$3&t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)F([0-9]+)-([0-9]+)/?$ /cgi-bin/forum/gforum.cgi?forum=$3&page=$4&t=search_engine [L,PT]
RewriteRule ^(.*)forum/?$ /cgi-bin/forum/gforum.cgi?t=search_engine [L,PT]
RewriteRule ^(.*)forum/(.*)gforum.cgi /cgi-bin/forum/gforum.cgi?%{QUERY_STRING} [NS,L]
Everything is pointing IMO to rewrite not being on this box. However, rackspace is positive that it is installed on there.