1&1 .htaccess

Please post all install related problems here. Visit this forum first for troubleshooting.

1&1 .htaccess

Postby daniel.grant on Tue Mar 11, 2008 12:34

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?
User avatar
daniel.grant
 
Posts: 97
Joined: Thu Nov 02, 2006 14:42
Location: London

Re: 1&1 .htaccess

Postby marcus@localhorst on Tue Mar 11, 2008 12:50

hi, i running a site successfully on 1&1 with just this htaccess filecontent:
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>


give it a try.
things like php_flag to set php.ini values will not work there.
greetings
marcus
„go out and love everyone“ (Akron/Family)
User avatar
marcus@localhorst
 
Posts: 731
Joined: Fri May 28, 2004 09:31
Location: localhorst

Re: 1&1 .htaccess

Postby daniel.grant on Tue Mar 11, 2008 13:57

Thanks Marcus,

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.


:roll:
User avatar
daniel.grant
 
Posts: 97
Joined: Thu Nov 02, 2006 14:42
Location: London

Re: 1&1 .htaccess

Postby DF6IH on Tue Mar 11, 2008 14:14

do you use confixx or plesk ?
http://www.phpwcms-docu.de/download-dev-versions.phtml --> playing 312
http://jgbm.de/bensheim_2009.phtml Wir haben uns getroffen und die Freude am CMS ist wieder steil gestiegen, Bilder folgen !!
How to code my own Module? -> http://jgbm.de/Module-creation-guide-1.phtml
User avatar
DF6IH
 
Posts: 2724
Joined: Mon Jan 10, 2005 17:10
Location: Hoffenheim (fast)

Re: 1&1 .htaccess

Postby daniel.grant on Tue Mar 11, 2008 14:40

not sure. Plesk I guess
User avatar
daniel.grant
 
Posts: 97
Joined: Thu Nov 02, 2006 14:42
Location: London

Re: 1&1 .htaccess

Postby DF6IH on Tue Mar 11, 2008 17:00

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 :cry:
http://www.phpwcms-docu.de/download-dev-versions.phtml --> playing 312
http://jgbm.de/bensheim_2009.phtml Wir haben uns getroffen und die Freude am CMS ist wieder steil gestiegen, Bilder folgen !!
How to code my own Module? -> http://jgbm.de/Module-creation-guide-1.phtml
User avatar
DF6IH
 
Posts: 2724
Joined: Mon Jan 10, 2005 17:10
Location: Hoffenheim (fast)

Re: 1&1 .htaccess

Postby Heiko H. on Wed Mar 12, 2008 07:33

Hi,

can you see the webservers error-log?
Or can you get a piece of it from provider?

Heiko
"Lieber Gott, der Du bist im Himmel wie auf Erden...
...und bitte zeige mir den Weg, damit ich ihn nicht selber suchen muss."


Fischmob
User avatar
Heiko H.
 
Posts: 644
Joined: Thu Oct 27, 2005 09:41
Location: Dresden

Re: 1&1 .htaccess

Postby daniel.grant on Wed Mar 12, 2008 15:26

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.
User avatar
daniel.grant
 
Posts: 97
Joined: Thu Nov 02, 2006 14:42
Location: London

Re: 1&1 .htaccess

Postby Jensensen on Wed Mar 12, 2008 19:58

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...
Last edited by Jensensen on Wed Mar 12, 2008 22:52, edited 2 times in total.
Wann scheiden die toxischen Banken endlich aus dem MARKT aus? Wann hören wir endlich damit auf, den miesen, toxischen Bänkern auch noch den A zu versilbern? DAS wäre MARKT. Und im Sauerland sagt man: "Das kommt billiger!" Es reicht jetzt!
User avatar
Jensensen
 
Posts: 2637
Joined: Tue Oct 17, 2006 19:11
Location: Rhein-Ruhr-Stever-Verse

Re: 1&1 .htaccess

Postby DF6IH on Wed Mar 12, 2008 21:58

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 ..
http://www.phpwcms-docu.de/download-dev-versions.phtml --> playing 312
http://jgbm.de/bensheim_2009.phtml Wir haben uns getroffen und die Freude am CMS ist wieder steil gestiegen, Bilder folgen !!
How to code my own Module? -> http://jgbm.de/Module-creation-guide-1.phtml
User avatar
DF6IH
 
Posts: 2724
Joined: Mon Jan 10, 2005 17:10
Location: Hoffenheim (fast)

Re: 1&1 .htaccess

Postby daniel.grant on Thu Mar 13, 2008 10:12

Jensensen wrote:Hi daniel,
don't give up.

Great advice!!

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


However after removing them I still was getting a 404 error when loading any rewritten page.

But by uncommenting
Code: Select all
RewriteBase /

the problem was solved.

DF6IH wrote:Its worth some hundred minutes work

Only took 40!


Thank you guys for persuading me to persevere - you know what's good for me!
User avatar
daniel.grant
 
Posts: 97
Joined: Thu Nov 02, 2006 14:42
Location: London


Return to phpwcms Installation Troubleshooting English

Who is online

Users browsing this forum: Alexa [Bot] and 0 guests