Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
renaming textpattern directory
i want to know how i can rename my txp directory (mysite/textpattern) to another name (e.g. admin) ?
i fing a tip with .htacces, but it dont work for me
<txp:txp_me />
Offline
#2 2010-07-11 06:46:46
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: renaming textpattern directory
Katalonian wrote:
i want to know how i can rename my txp directory (mysite/textpattern) to another name (e.g. admin) ?
Rename directory and change one line in /index.php
define("txpath", dirname(__FILE__).'/textpattern');
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
Re: renaming textpattern directory
thanks!
and need to change same line in css.php
and for sure in config.php :)
Last edited by Katalonian (2010-07-11 16:24:20)
<txp:txp_me />
Offline
Re: renaming textpattern directory
Remember this will make upgrading more difficult.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: renaming textpattern directory
thanks for tip.
just before upgrading, i will return the path names by default.
<txp:txp_me />
Offline
Re: renaming textpattern directory
guys, when for example, i want to recover my password, the link, which sended to email, named like mysite.com/textpattern/
when i’m changed txp directory, to “admin”
how i can change it?
<txp:txp_me />
Offline
Re: renaming textpattern directory
You shouldn’t change the textpattern directory, unless you know what you’re doing and why.
If your goal is to make it easier for users to find the admistrative side of TXP, just create a directory called ‘/admin’ and put an index.html in there which refreshes/redirects automatically to the /textpattern directory or use a mod_rewrite trick in .htaccess.
If you think you’re making TXP more secure. You’re not. Google for “security by obscurity” ;)
Offline
Re: renaming textpattern directory
thanks)
but you don’t answered to my question ))
<txp:txp_me />
Offline
Re: renaming textpattern directory
Don’t ask me how this works, but these couple of lines in .htaccess work and you don’t have to rename or create any directory:
RewriteRule ^login$ /login/ [R=301,L]
RewriteRule ^login/?(.*)$ /textpattern/$1 [NC,L]
Replace ‘login’ with ‘admin’ or whatever you want. As this looks identical to a comment in the link in your original post, maybe this isn’t working for you for some reason, but I don’t know why. Make sure you have a line with RewriteEngine On
before the above lines.
Offline
Pages: 1