View Full Version : htaccess file not fixing problem
sking
05-20-2006, 10:54 PM
http://cash-for-structured-settlements.net/esyndicat/
I have a 20 domains in one account type of host. This means I have the main domain, which is the one above, and under it is a www directorey and under the www directory are the other domains. I was told that I had to put all my scripts into the cgi-bin which is under cash-for-structured-settlements.net account. This is before the www directory in my account tree. So it looks like this:
cash-for-structured-settlements.net
cgi-bin
www
other folders... some of which have domains pointing to them.
So how should the httaccess file be setup to work. Where does everything in the cms folder go?
The script works from the esyndicat folder which is below the www.
http://www.cash-for-structured-settlements.net/esyndicat
but you will get page not found messages if you click on any of the links.
Scot
subseo
05-21-2006, 10:04 AM
You shall just copy the .htaccess file to the Esyndicat folder. Is it there?
sking
05-21-2006, 09:28 PM
Tom, it's already there in the syndicat folder. It's not working on the top pages links...Did you click the link above?
RewriteEngine on
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]
Try to add:
RewriteBase /esyndicat/
right after: RewriteEngine on
so your new .htaccess would look something like:
RewriteEngine on
RewriteBase /esyndicat/
RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]
...
sking
05-22-2006, 06:37 AM
I did this already:
RewriteEngine on
RewriteBase /esyndicat/
RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]
....
This isn't fixing it. Normally I know that it would. But again, this account is hosting with a main domain, and all the other domains are under www. I think there is an issue of database access under www. Everything has to be under the cgi-bin under the main domain. I tried to install it under the top level cgi-bin as I have indicated above, and that didn't work either. I'll take this up with my host on Monday. Do you have any other ideas?
Nick Collins
05-22-2006, 07:02 AM
Try to use "RewriteBase /" instead of "RewriteBase /esyndicat/". Let me know the result.
sking
05-22-2006, 07:06 PM
RewriteEngine on
RewriteBase /
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]
This is in the esyndicat folder
My tree goes like this:
cash-for-structured-settlements.net
cgi-bin
www
esyndicat
other domain folders...
I was told that I had to put all my scripts into the cgi-bin which is under cash-for-structured-settlements.net account. This is before the www directory in my account tree.
This is way out of knowledge base. However putting the scripts in the cgi bin just doesn't sound right.
sking
05-22-2006, 07:50 PM
I hadn't enabled httaccess! One enabled, the rewritebase /cms/ worked.
End of story.
:yahoo:
Nick Collins
05-31-2006, 09:51 AM
Well done!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.