| 
Welcome, Guest

Howto: create homepages and 'subdomains' per user
(1 viewing) (1) Guest

TOPIC: Howto: create homepages and 'subdomains' per user

Re:Howto: create homepages and 'subdomains' per us 5 years, 11 months ago #15592

  • elDivino
  • elDivino
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 10
  • Karma: 1
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

Re:Howto: create homepages and 'subdomains' per us 5 years, 11 months ago #15593

  • micoots
  • micoots
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 57
  • Karma: -
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.

Re:Howto: create homepages and 'subdomains' per us 5 years, 11 months ago #15655

  • trail
  • trail
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 439
  • Karma: 792
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

Re:Howto: create homepages and 'subdomains' per us 5 years, 11 months ago #15672

  • elDivino
  • elDivino
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 10
  • Karma: 1
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

 
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.


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

Re:Howto: create homepages and 'subdomains' per us 5 years, 11 months ago #15700

  • elDivino
  • elDivino
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 10
  • Karma: 1
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

Re:Howto: create homepages and 'subdomains' per us 5 years, 11 months ago #15713

  • trail
  • trail
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 439
  • Karma: 792
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
Time to create page: 1.00 seconds