Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Installing TXP blocking access to subfolders
Howdy! I just redesigned our company’s site with Textpattern. The previous site was a simple one-page portfolio hand-coded in HTML & jQuery. I have a password-protected subfolder where I keep testing versions of website projects that are in progress for clients. I’ve discovered that since I’ve installed TXP as the main site, I can not access any subfolders anymore, but instead receive a 404 error. I’m assuming that is because Txp is looking for a ‘section’ instead of the actual folder. How do I fix this?
Thanks!
Offline
#2 2008-11-03 22:06:42
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Installing TXP blocking access to subfolders
Does this FAQ help?
Offline
Re: Installing TXP blocking access to subfolders
Geez. Can’t believe I missed that. Thanks.
/me is embarressed.
Offline
#4 2008-11-06 10:20:46
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Installing TXP blocking access to subfolders
This is little bit same kind of question: I have txp installed in a subfolder:
www.example.com/site2/
and I want to make other, independent installation in the web-root, to replace current html-site:
www.example.com/
Is it going to mess things? I mean, doesn’t the upcoming Root-Txp then try to find it’s own section named /site2/ instead of going to subsite? Both sites are going to be in use, so they should co-exist peacefully.
If it messes not, what would be the best way to have private password-secured live-testing on the root, so that users coming to root are still pointed to old html-site, until the txp-version is ready? Root-testing is needed because MLP-enabled sites have difficulties with commenting in subfolders.
Offline
Re: Installing TXP blocking access to subfolders
ultramega wrote:
This is little bit same kind of question: I have txp installed in a subfolder:
www.example.com/site2/
and I want to make other, independent installation in the web-root, to replace current html-site:
www.example.com/
Is it going to mess things? I mean, doesn’t the upcoming Root-Txp then try to find it’s own section named /site2/ instead of going to subsite? Both sites are going to be in use, so they should co-exist peacefully.
this is exactly how neme.org works with an install in the root and another one in the /main/ directory.
In ansswer to your question, all should work just fine as long as you do not have a section or category in the root install named as site2
Last edited by colak (2008-11-06 12:41:17)
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: Installing TXP blocking access to subfolders
@Colak
How did you do that Online for 3 days, etc…. in the footer, is that PHP? what’s the code to do something like that? Thanks. x
~ Cameron
Offline
Re: Installing TXP blocking access to subfolders
driz wrote:
@Colak
How did you do that Online for 3 days, etc…. in the footer, is that PHP? what’s the code to do something like that? Thanks. x
Hi Cameron, I use fha_time_dif
Last edited by colak (2008-11-07 07:33:01)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#8 2008-11-07 08:46:37
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Installing TXP blocking access to subfolders
Thanks for the reply, colak. Sounds reasonable. Any ideas for the private testing thing in the root?
Last edited by ultramega (2008-11-07 08:47:03)
Offline
Re: Installing TXP blocking access to subfolders
ultramega wrote:
Thanks for the reply, colak. Sounds reasonable. Any ideas for the private testing thing in the root?
A couple of ruud’s plugins might be of help…
Also a meta tag for the search engines to noindex, follow and revisit might help with the SEO
Last edited by colak (2008-11-07 10:25:16)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#10 2008-11-07 12:14:32
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Installing TXP blocking access to subfolders
hmmm… rvm_maintenance plugin I actually have used on the subsite. Maybe it would be possible to make with that (on the upcoming root-installation) a page that would redirect straight to the subsite when doing development on the root…
Other way I thought, would it be possible to use index.html in the root as general landing page? So visitors writing our domain, would see html-based index automatically, and optionally the txp’s index.php would also be password protected, so people guessing *.php would not be possible to access it? Htaccess I know, but I’m not very familiar with that :(
Offline
Re: Installing TXP blocking access to subfolders
ultramega wrote:
Other way I thought, would it be possible to use index.html in the root as general landing page? So visitors writing our domain, would see html-based index automatically, and optionally the txp’s index.php would also be password protected, so people guessing *.php would not be possible to access it? Htaccess I know, but I’m not very familiar with that :(
would this htaccess rule work?
DirectoryIndex index.html index.php
It should look for index.html as the default root document.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#12 2008-11-07 13:52:51
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Installing TXP blocking access to subfolders
I see. And I propably don’t have to add any opposite rule in the subsite folder’s htaccess to enable php again? Doesn’t that mean that it first looks for html, then php if first not found, in all subfolders? Do you see any pitfalls in this kind solution?
Offline