Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-04 15:30:13

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Template problem: page display does not change

I am using Netfirms as my hosting company. I am trying to setup clean urls. With the htaccess file I have, when I click a link generated by TXP the web address changes but it serves the home page. So, when I click a permalink I get the home page but the address www.billgotz.com/article/a-new-beginning. The links to non-TXP areas work fine. I tried other combinations for htaccess from “Post your Clean URL .htaccess tweaks here” and FAQs, but get 404 and 500 errors. I’ve tried different combinations of uncommenting but to no avail.

Any suggestions?

www.billgotz.com

.htaccess file contents:

#DirectoryIndex index.php index.html

#Options +FollowSymLinks

RewriteBase /

<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

Diagnostic info:

Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-17 03:19:25/2005-12-27 00:49:56
Document root: /mnt/web_a/d41/s41/b01f1740
$path_to_site: /mnt/web_a/d41/s41/b01f1740/www
Textpattern path: /mnt/web_a/d41/s41/b01f1740/www/textpattern
Permanent link mode: section_title
Temp folder: /mnt/web_a/d41/s41/b01f1740/www/textpattern/tmp
Site URL: www.billgotz.com
PHP version: 5.0.5
Register globals: 1
server_time: 2006-04-04 11:28:19
MySQL: 4.1.12-log
Locale: en_US.UTF-8
Server: Apache/1.3.34 (Unix) mod_perl/1.26
php_sapi_mode: cgi
os_version: FreeBSD 4.10-RELEASE-p21

Pre-flight check:
————————————
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
RewriteBase /

<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

————————————

(Edit: renamed the thread title to something more helpful. :) -Mary)

Last edited by Mary (2006-04-04 19:36:50)

Offline

#2 2006-04-04 19:36:59

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Template problem: page display does not change

This isn’t a clean urls problem – your clean urls work fine – this is a template problem. :) Renaming and moving thread…

Offline

#3 2006-04-04 20:10:45

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: Template problem: page display does not change


kurt@kurtraschke.com

Offline

#4 2006-04-05 04:54:01

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Re: Template problem: page display does not change

My site worked on MAMP on my computer. When I moved it to my host the page does not change when I go to a new section. In test and debugging mode I see no errors. Debugging does indicate that the same page is being served all the time. I can change the default section to use the contact and articles pages I have created but then that page does not change when I go to other sections.

The correct page is served in the right section in messy url mode. That’s why I assumed it had to do with htaccess.

What could be wrong? Does it mean anything that it worked fine on my system?

Last edited by Bill G (2006-04-05 05:05:57)

Offline

#5 2006-04-06 01:31:16

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Re: Template problem: page display does not change

I did a clean install of a fresh TXP with a new data base and instead of the non-changing page I am getting 404 errors. I think it is an .htaccess problem. Has anyone gotten Netfirms to work with clean urls?

New:

I did some messing around with .htaccess and returned it to the settings from before. Now I’m getting the unchanging page template. I have no idea what I changed in it.

What could cause the template not to change?

Last edited by Bill G (2006-04-06 16:17:18)

Offline

#6 2006-04-07 01:26:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Template problem: page display does not change

What page(s) have you assigned to each of your sections (check the sections tab)?

Offline

#7 2006-04-07 03:32:34

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Re: Template problem: page display does not change

That’s not the problem. Default section has default page and article has archive. I think either the page template is not being changed or the url is not being converted correctly by .htaccess and is going back to the home page yet the url in the browser says its at a new location.

www.billgotz.com

Last edited by Bill G (2006-04-12 02:12:36)

Offline

#8 2006-04-07 04:12:03

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Template problem: page display does not change

Aah. Your tag trace confirms it:
<code>[SQL (0.001843): select * from `txp_section` where name = ‘default’ limit 1]</code>,

So it is indeed not getting passed the request, for some reason.

I don’t see anything out of place in your diagnostics. Does your host have anything to say on this? Any pertinent documentation?

Offline

#9 2006-04-07 20:26:41

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Re: Template problem: page display does not change

I’m not sure what to ask them. I don’t know enough about what’s going on. There are others with unresolved problem around clean urls and Netfirms. WordPress users have problems and Netfirms offers an install from the utilities for it and claim they support WordPress’s version of clean urls. http://wordpress.org/support/topic/49968

Conveniently, my time is up with them is up latter this month. I’m going to go with another provider. Any suggestions?

Offline

#10 2006-04-07 21:41:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Template problem: page display does not change

Ah. They don’t support mod_rewrite/truly clean urls: netfirms: How do I create search engine safe URLs in Wordpress?

You’ll be glad to be rid of them. :)

Offline

#11 2006-04-08 13:19:42

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Re: Template problem: page display does not change

They claim they do other places on there help pages, but that’s a mistake, or worse.

Offline

#12 2006-04-12 01:46:38

Bill G
Member
From: Minnesota, USA
Registered: 2005-05-04
Posts: 11
Website

Re: Template problem: page display does not change

I change to DreamHost. Everything is working wonderfully.

www.billgotz.com

Last edited by Bill G (2006-04-12 02:12:57)

Offline

Board footer

Powered by FluxBB