1&1 .htaccess
-
- Posts: 97
- Joined: Thu 2. Nov 2006, 15:42
- Location: London
1&1 .htaccess
I'm using a clients 1&1 profesisonal hosting package for v1.3.5
When I upload .htaccess file I get Server 500 Error loading any page.
It seems that 1&1 has real issues with .htaccess and url rewriting.
Has anyone had any experience in how to get around this?
When I upload .htaccess file I get Server 500 Error loading any page.
It seems that 1&1 has real issues with .htaccess and url rewriting.
Has anyone had any experience in how to get around this?
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
Re: 1&1 .htaccess
hi, i running a site successfully on 1&1 with just this htaccess filecontent:
give it a try.
things like php_flag to set php.ini values will not work there.
greetings
marcus
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6
RewriteRule ^(.+)\.phtml$ index.php?$1
</IfModule>
things like php_flag to set php.ini values will not work there.
greetings
marcus
-
- Posts: 97
- Joined: Thu 2. Nov 2006, 15:42
- Location: London
Re: 1&1 .htaccess
Thanks Marcus,
No php.ini and your .htaccess file but still get the message:

No php.ini and your .htaccess file but still get the message:
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webadmin@kundenserver.de 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.

Re: 1&1 .htaccess
do you use confixx or plesk ?
-
- Posts: 97
- Joined: Thu 2. Nov 2006, 15:42
- Location: London
Re: 1&1 .htaccess
not sure. Plesk I guess
Re: 1&1 .htaccess
I'm sorry ... can't help ypu with Plesk... not familiar with this and in my mind I think you need telnet to the server to get rewrite running with Plesk... very ugly 

Re: 1&1 .htaccess
Hi,
can you see the webservers error-log?
Or can you get a piece of it from provider?
Heiko
can you see the webservers error-log?
Or can you get a piece of it from provider?
Heiko
-
- Posts: 97
- Joined: Thu 2. Nov 2006, 15:42
- Location: London
Re: 1&1 .htaccess
No
. I don't think it's worthwhile, pursuing this one - not my usual web hosting company and not essential to have rewrite.
Thanks for your help anyway.

Thanks for your help anyway.
Re: 1&1 .htaccess
Hi daniel,
don't give up. This board's community is to serve you. So, what's up - next steps, plans?
What do you think to do now?
Hey, --> think about marcus [ok, he's a web pro handyman but] he got it to run well with this "grmmpff hoster"..., so you should as well....
Do you need any support to argue [your customer] for using no rewritten-url's any more [with this account]?
--> Google and friends catches/fetches/crawls all... so what...
don't give up. This board's community is to serve you. So, what's up - next steps, plans?
What do you think to do now?
Hey, --> think about marcus [ok, he's a web pro handyman but] he got it to run well with this "grmmpff hoster"..., so you should as well....
Do you need any support to argue [your customer] for using no rewritten-url's any more [with this account]?
--> Google and friends catches/fetches/crawls all... so what...
Last edited by Jensensen on Wed 12. Mar 2008, 23:52, edited 2 times in total.
Re: 1&1 .htaccess
Its worth some hundred minutes work, I agree with jensensen!
Next thing to check is if you have a,) Possibility to ssh upon the Server or
b.) Find in this Plesk (or Virtuzzo if present) any place to add "Special httpd" Entries ..
Next thing to check is if you have a,) Possibility to ssh upon the Server or
b.) Find in this Plesk (or Virtuzzo if present) any place to add "Special httpd" Entries ..
-
- Posts: 97
- Joined: Thu 2. Nov 2006, 15:42
- Location: London
Re: 1&1 .htaccess
Great advice!!Jensensen wrote:Hi daniel,
don't give up.
I have to admit when it comes to hosting I am a total novice but you're right, it is worthwhile, so I tried again this morning and strangely Marcus' script worked for me (almost)
These lines seemed to be the cause of the 500 error.
Code: Select all
php_flag magic_quotes_gpc Off
php_flag register_globals Off
But by uncommenting
Code: Select all
RewriteBase /
Only took 40!DF6IH wrote:Its worth some hundred minutes work
Thank you guys for persuading me to persevere - you know what's good for me!