Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-12-18 01:21:05

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: headache free restructuring?

I’m not sure it’s supposed to go there. I usually add it at the very bottom:

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]
	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php
	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

Redirect permanent /article http://mysite.com/blog

#php_value register_globals 0

Offline

#17 2008-12-18 01:22:40

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: headache free restructuring?

Els wrote:

I’m not sure it’s supposed to go there. I usually add it at the very bottom:

oh sorry i forgot to mention that i removed it immediately the first time and the problem never ironed out. if my server was still running i would’ve re-installed my sql file and all the ftp files. funny how these things happen the day you’re ready to deploy the site you’ve been working on for 2 months.

Offline

#18 2008-12-18 01:34:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: headache free restructuring?

Is it possible that the error was related to the server problems, and not to the redirect in .htaccess?

Offline

#19 2008-12-18 01:37:03

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: headache free restructuring?

Els wrote:

Is it possible that the error was related to the server problems, and not to the redirect in .htaccess?

well it seemed to me like the server needed some sort of cache clearing if that exists. i just don’t know much about these things operate. the ftp side of things was operating fine throughout the whole problem though. but alas it’s now grinded to a halt so maybe your theory is correct

Offline

#20 2008-12-18 01:44:30

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: headache free restructuring?

the site is back but the blog page is still dead

Offline

#21 2008-12-18 02:59:18

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: headache free restructuring?

alas it gets weirder and weirder.

1. setup a test site in a subdirectory to help troubleshoot
2. the blog page was still broken
3. re-exported my database from the localhost using “SQL” and save as file in phpmyadmin to see if that got corrupted on export
4. re-imported it into my test site and the blog page started working
5. re-imported it into my main site and the blog page is still broken.

for some reason though, i can’t run the test page separate from the main page. whenever i try to adjust the site address in the admin panel the two keep fighting with each other.

Last edited by mrtunes (2008-12-18 03:01:56)

Offline

#22 2008-12-18 14:57:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: headache free restructuring?

Your menu points to http://www.mrtunes.ca/txptest/blog/, could that have something to do with it?

Edit: also http://mrtunes.ca/?s=blog is working. Are your URL scheme settings correct?

Last edited by els (2008-12-18 14:58:43)

Offline

#23 2008-12-18 17:08:14

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: headache free restructuring?

Els wrote:

Your menu points to http://www.mrtunes.ca/txptest/blog/, could that have something to do with it?
Edit: also http://mrtunes.ca/?s=blog is working. Are your URL scheme settings correct?

my menu goes to /txptest/blog because when trying to do this test site the main site and txptest were fighting with each other. since it happens to work, i just left it so i could get some rest.

?s=blog doesn’t really make any sense though, cause on my localhost, and on the txptest site, /blog works. i’m moving hosts soon so maybe a fresh server will do me right?

Offline

#24 2008-12-18 21:41:53

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: headache free restructuring?

Just a thought: you don’t happen to have a real directory ‘blog’ that is getting in the way?

Offline

#25 2008-12-18 22:03:30

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: headache free restructuring?

Els wrote:

Just a thought: you don’t happen to have a real directory ‘blog’ that is getting in the way?

well well… aren’t you the genious!!!

who doesn’t arbitrarily create directories called “blog” and then forget about them?

problem is fixed!

please take a look at the note under “info” in my footer :)

Last edited by mrtunes (2008-12-18 22:03:41)

Offline

#26 2008-12-18 22:08:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: headache free restructuring?

Great :) Glad it’s all working again!

Offline

Board footer

Powered by FluxBB