Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-06 04:55:25

Comma
New Member
From: Sacramento
Registered: 2007-07-06
Posts: 1

.htaccess / redirect for additional domains - 500 error

Ok, I am new to this whole bit but have tried everything relating to .htaccess and just can’t find a way out. Here’s my situation.

I am hosting a domain, visualinguistics.com, on my personal site’s server. Through Media Temple, they tell you to just make a folder with the site name in your main directory and after changing the nameservers and all that, everything is dandy.

Now I installed Textpattern for this other domain located at www.andrewnilsen.com/visualinguistics.com (there are no other installs on my site). When I type in www.visualinguistics.com, I get a 500 error. If I type in visualinguistics.com/index.php, the site loads fine. Logging in to textpattern works fine as well.

In diagnostics, it has always said “Site URL preference might be incorrect: visualinguistics.com/visualinguistics.com” I am guessing this has to do with hosting the site withing my server.

Also, to get a clean URL preflight check I have to put andrewnilsen.com/visualinguistics.com as my site URL preference.

I just don’t understand why the index.php isn’t loading when going straight to the site. You have to reference the exact file for it to load.

Here is my diagnostics report:

Textpattern version: 4.0.4 (r1956)
Last Update: 2007-07-03 08:12:05/2007-07-03 07:57:25
Document root: /var/www/html
$path_to_site: /var/www/html/visualinguistics.com
Textpattern path: /var/www/html/visualinguistics.com/textpattern
Permanent link mode: section_id_title
Temporary directory path: /var/www/html/visualinguistics.com/textpattern/tmp
Site URL: andrewnilsen.com/visualinguistics.com (this is the only way i have gotten a clean URL check)

and my .htacces file contents:

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

Any ideas?

Offline

#2 2007-07-06 08:51:22

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: .htaccess / redirect for additional domains - 500 error

Try using the RewriteBase

Perhaps something like:
RewriteBase /

Offline

Board footer

Powered by FluxBB