Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-12-18 00:52:20

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

Re: headache free restructuring?

keith wrote:

Fair enough guys – it was but a thought, and I’m no .htaccess expert.
Hope you get this sorted, Elliott.

thanks keith, it was at least reassuring to see that page show up with your suggestion :)

Offline

#14 2008-12-18 00:59:31

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

Re: headache free restructuring?

And where in this .htaccess file did you add this line?

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

And what do you mean exactly with ‘it wasn’t working’? It did nothing or it did something you did not expect?

Offline

#15 2008-12-18 01:03:13

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

Re: headache free restructuring?

Els wrote:

And where in this .htaccess file did you add this line?

Redirect permanent /article http://mysite.com/blog
#Options -Indexes
Redirect permanent /article http://mysite.com/blog
<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

And what do you mean exactly with ‘it wasn’t working’? It did nothing or it did something you did not expect?

it had some sort of error message similar to a 500, you know the white screen. i wish i copied it out but a google search of the error string looked fairly specific to my situation, cause nothing came up when i googled.

Offline

#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

Board footer

Powered by FluxBB