Howto: create homepages and 'subdomains' per user

17 years 10 months ago #15592 by elDivino
thanks alot for the nice trick

The forwarding works, like for instances I enter www.tuningworks.ch/tom and my profil is shown

but if I enter tom.tuningworks.ch, I doesn't work
---
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

The subdomain function always links to the normal page, for instances if i deactivate the .httacess file, I normaly transfers tom.tuningworks.ch to www.tuningworks.ch

Can someone maybe help me?
Thanks in advance


cheers
Tom

cheers
Tom

Please Log in to join the conversation.

17 years 10 months ago #15593 by micoots
You first step is to look at your webserver logs and maybe even post them here. The 500 error is usually explained better in those logs, and from there you can see why it's failing.

Michael.

Please Log in to join the conversation.

17 years 10 months ago #15655 by trail
The only thing i can think of is that your webserver is configured to allow only one redirect. we are using 2.

this would be mentioned in your error_log like the previous poster says. The logs are usualy located in a dir higher than your webroot and accessible by ftp, if not you can check your control panel if you have one.

DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age , Starsign Matchmaking Horoscope , My Visitor , My Highscores , My ProfileID ,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many :)

Please Log in to join the conversation.

17 years 10 months ago #15672 by elDivino
micoots wrote:

You first step is to look at your webserver logs and maybe even post them here. The 500 error is usually explained better in those logs, and from there you can see why it's failing.

Michael.


thanks for your fast reply

unfortunately I have no access to the apache log files, not trough ftp or a webadmin. I requested this file by my host and also wrote the problem to them.

As soon I have the file, I will post it here.
thanks

EDIT:
Here is the error message

[code:1]
Tue Jun 20 10:42:14 2006] [error] [client 80.219.131.155] mod_rewrite:
maximum number of internal redirects reached. Assuming configuration error.
Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.[/code:1]

I wrote my system administrator to increase the MaxDirects, I guess that was the problem?

Post edited by: elDivino, at: 2006/06/20 13:42

cheers
Tom

Please Log in to join the conversation.

17 years 10 months ago #15700 by elDivino
I still have the same problem, here is the .htacess file


RewriteEngine On

RewriteOptions MaxRedirects=10

DirectoryIndex index.php
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)/?$ index.php?option=com_comprofiler&task=userProfile&user='$1' [L]

RewriteCond %{HTTP_HOST} ([^/]+).tuningworks.ch [NC]
RewriteCond %1 !www$ [NC]
RewriteRule ^(.*)$ www.tuningworks.ch/%1 [L]
----

hope somebody can help me?
thanks in advance

cheers
Tom

Please Log in to join the conversation.

17 years 10 months ago #15713 by trail
AH! You did not follow the instructions correctly :)

The order is funked up..

From memory, it should be more like:

RewriteEngine On
RewriteOptions MaxRedirects=10
DirectoryIndex index.php
RewriteBase /

RewriteCond %{HTTP_HOST} ([^/]+).tuningworks.ch [NC]
RewriteCond %1 !www$ [NC]
RewriteRule ^(.*)$ www.tuningworks.ch/%1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?option=com_comprofiler&task=userProfile&user='$1' [L]

DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age , Starsign Matchmaking Horoscope , My Visitor , My Highscores , My ProfileID ,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many :)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.510 seconds

Facebook Twitter LinkedIn