PDA

View Full Version : Major installation problem


sking
05-26-2006, 04:14 AM
I have a muliple domains hosting account. I host 20 domains on one account.
Here is my tree...

cash-for-structured-settlements.net
cgi-bin
www.
esyndicat (this goes with the main domain above)

autoinsurancequoteonline.org (a folder with a domain pointing to it.another domain)
esyndicat

more folders for other domains below here...

My main domain works properly with the rewritebase /esyndicat/

http://cash-for-structured-settlements.net/esyndicat/

But look at this directory:

This is what shows up in my browser bar after I click on the following link:
http://www.autoinsurancequoteonline.org/esyndicat/

http://www.autoinsurancequoteonline.org/esyndicat/?NF_FWD=/autoinsurancequoteonline.org/

What bunk...I have spent a lot of wasted time deleting this entire syndicat folder and reuploading the thing trying to figure out the problem.

In the future, if I want to reinstall it, it appears that I can't just put the install directory back up on the server and rerun the install program. i don't know what else to do. Is there another way to reinstall it ? I dropped the database. I assume it would need this to recreate the tables.. anyway that's a side issue.

Why is the above problem happening?
Here is the htaccess file for the main on that works..

RewriteEngine on
RewriteBase /esyndicat/
RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]

RewriteRule ^new-links.html$ new-links.php [QSA,L]
RewriteRule ^new-links([0-9]+).html$ new-links.php?page=$1 [QSA,L]

RewriteRule ^top-links.html$ top-links.php [QSA,L]
RewriteRule ^top-links([0-9]+).html$ top-links.php?page=$1 [QSA,L]

RewriteRule ^popular-links.html$ popular-links.php [QSA,L]
RewriteRule ^popular-links([0-9]+).html$ popular-links.php?page=$1 [QSA,L]

RewriteRule ^editor-links/index.html$ editor-links.php [QSA,L]
RewriteRule ^editor-links/index([0-9]+).html$ editor-links.php?page=$1 [QSA,L]

RewriteRule ^(.*)/(.*)-l([0-9]+).html$ view-link.php?cat=$1&title=$2&id=$3 [QSA,L]


and the only change I made was to the first two lines:

RewriteEngine on
RewriteBase /autoinsurancequoteonline.org/esyndicat/

The autoinsurancequoteonline.org folder is below the www. folder.
Just look and the lame looking directory page. No pictures, and the justification is all messed up.

Scot

Vincent Wright
05-26-2006, 10:57 AM
Hello sking,

I tried to navigate to http://www.autoinsurancequoteonline.org/esyndicat/ but received 500 Internal Server Error.

One of the ways for me to help you is log in to your ftp/cpanel/whatever and try to diagnose what the problem is.

sking
05-26-2006, 06:04 PM
I fixed the error. I had rewritebase ../autoinsurancequoteonline.org/esyndicat/

I removed the 2 dots, and that fixed the error. The htaccess file works with either the autoinsurancequoteonline.org in front like this;

rewritebase /autoinsurancequoteonline.org/esyndicat/

or just as

rewritebase /esyndicat/

Either way, it isn't reading the images and it is messed up. This must have something to do with the level the folders are nested.

http://www.autoinsurancequoteonline.org/esyndicat/

http://www.cash-for-structured-settlements.net/esyndicat
this one works

WTM
05-26-2006, 06:36 PM
Check your header.tpl file.
In the head section make sure link to css file looks like this:<link rel="stylesheet" type="text/css" href="{$templates}/css/style.css" />
or manually enter full path to your css file.

sking
05-26-2006, 07:48 PM
I tried this:

<link rel="stylesheet" type="text/css" href="/esyndicat/{$templates}/css/style.css" />

now the directory appears but the graphics aren't appearing because the domain is appearing twice...here's a snippet from the view source:

<td rowspan="2" valign="top"><img src="http://www.autoinsurancequoteonline.org/autoinsurancequoteonline.org/esyndicat/templates/SunnyDay/img/ico-search.gif" style="margin-top: -5px;" alt="" title="" /></td>

It's the same with the other images. Does this path get setup originally on installtion? Also, the links don't work. Implied htaccess issue. Here's my current file:

RewriteEngine on
RewriteBase /esyndicat/
RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]

RewriteRule ^new-links.html$ new-links.php [QSA,L]
RewriteRule ^new-links([0-9]+).html$ new-links.php?page=$1 [QSA,L]

RewriteRule ^top-links.html$ top-links.php [QSA,L]
RewriteRule ^top-links([0-9]+).html$ top-links.php?page=$1 [QSA,L]

RewriteRule ^popular-links.html$ popular-links.php [QSA,L]
RewriteRule ^popular-links([0-9]+).html$ popular-links.php?page=$1 [QSA,L]

RewriteRule ^editor-links/index.html$ editor-links.php [QSA,L]
RewriteRule ^editor-links/index([0-9]+).html$ editor-links.php?page=$1 [QSA,L]

RewriteRule ^(.*)/(.*)-l([0-9]+).html$ view-link.php?cat=$1&title=$2&id=$3 [QSA,L]



Scot

sking
05-27-2006, 05:30 PM
I have this fixed now. I had to modify the header.tpl file and the config.inc.php file. Thanks for your help.

Vincent Wright
05-30-2006, 04:54 AM
You are welcome.