Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-04-11 21:22:25
- seikenn
- Member
- From: Baltimore, Maryland USA
- Registered: 2007-12-16
- Posts: 10
Common problems when moving TXP from subdirectory to root? PLEASE HELP
I recently tried to move a site redesign that I am doing over from a subdirectory to the site root, but can not get it to work.
I used this <a href=“http://textbook.textpattern.net/wiki/index.php?title=Moving_Installation_from_Subdirectory_to_Domain_Root_on_the_Same_Server>LINK</a> as my guide and followed every step.
The fun thing is that the homepage worked but I could not get any of the others to show up. The links took me to a 404 page. I’ve been trying to fix it now forever but can not seem to find the problem. Please help and thank you for your time!
Offline
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
Maybe your links are still pointing to the sub-directory?? I take it you can login to TXP?? Have you changed all the paths in Preferences? Do you have a link to the site so we can have a look?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2008-04-11 21:41:31
- seikenn
- Member
- From: Baltimore, Maryland USA
- Registered: 2007-12-16
- Posts: 10
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
I made sure to change all of my absolute links and to change all of my referencing links in the admin section. I double triple checked my links for everything. the funny part is the fact that the main url worked www.example.com but when I tried www.example.com/section_name it went to a 404 page.
the link to the site is http://www.practicalmma.com
I turned debugging mode if that helps
I also have the correct Permanent link mode selected (section/title) and when I run a site diagnostic it displays all checks passed.
Last edited by seikenn (2008-04-12 02:42:22)
Offline
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
How do your “absolute” links look?
This isn’t necessary but I have grown into the habit of creating my links using the <txp:site_url />
tag so that if the site is moved it should always pick up the correct base URL once it has been reset in Preferences. With this tag you do not require the slash so, for example, to link to your contact section you would use <txp:site_url />contact
.
Last edited by thebombsite (2008-04-11 21:52:33)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
have you moved your .htaccess file to the root too (you may have to set your ftp client to be able to view hidden files)? That could be a reason why the root works but the others don’t (without setting to messy urls).
Last edited by jakob (2008-04-11 21:58:02)
TXP Builders – finely-crafted code, design and txp
Offline
#6 2008-04-12 00:22:42
- seikenn
- Member
- From: Baltimore, Maryland USA
- Registered: 2007-12-16
- Posts: 10
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
I did move the .htaccess file. I have show hidden files on.
Offline
#7 2008-04-12 02:37:22
- seikenn
- Member
- From: Baltimore, Maryland USA
- Registered: 2007-12-16
- Posts: 10
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
the link to the site is http://www.practicalmma.com
I turned on debugging if it helps.
I’ve been trying to figure this out for hours now ahhhhhhh!
Offline
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
Is that link to the new design? I’m not getting any 404s. All links seem to be working.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
The site seems to be working just fine from here. The only problem I see is a dead anchor in the ‘home’ page. (The one pointing to ‘children’)
>_typos
Last edited by colak (2008-04-12 12:35:58)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Common problems when moving TXP from subdirectory to root? PLEASE HELP
works fine to me too. long shot: have you perhaps been working on a development version on your own computer and somehow changed your hosts file. Usually I will call my local development version on the computer local.domain.tld or domain.dev to ensure it is distinct, then when I transfer online, I also switch off the local webserver and clear cache etc. to catch any possible remaining links to local files.
Like stuart says, using txp:site_url
and txp_section name="..." title="1" link="1"
eases things a great deal, particularly if a client would like a section renamed at the last minute…
TXP Builders – finely-crafted code, design and txp
Offline