Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-10 21:04:37

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

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

#3 2010-07-11 16:00:37

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

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

#4 2010-07-12 07:05:29

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: renaming textpattern directory

Remember this will make upgrading more difficult.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2010-07-12 07:12:24

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: renaming textpattern directory

thanks for tip.
just before upgrading, i will return the path names by default.


<txp:txp_me />

Offline

#6 2010-07-28 12:16:14

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

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

#7 2010-07-28 12:40:44

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#8 2010-07-28 12:58:05

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: renaming textpattern directory

thanks)
but you don’t answered to my question ))


<txp:txp_me />

Offline

#9 2010-07-28 13:15:17

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

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

Board footer

Powered by FluxBB