Categories:
About It:
Rate it:
Flag it:
Renaming Textpattern directory
If you’re looking to rename the Textpattern admin directory (which by default is “textpattern”), then you may do this with mod_rewrite through your .htaccess:
RewriteEngine On RewriteRule ^admin/(.*) /textpattern/$1 [NC,L]
where “admin” would be come the new directory name. (http://yoursite.com/textpattern will still work, however.)
Thanks to Andrew for this answer.
Posted here:
27 Feb 2005Article modified:
27 Feb 2005









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (2)
After some trial and error I got the following to work, but the page then doesn’t find the CSS:
RewriteRule ^admin(.*)$ /textpattern/$1 [NC,L]hazel, how about the combination of two rules:
Place them above your other rules. The first redirects www.mysite.com/admin to the same url with a / behind it. The second rewrites admin/ to textpattern/ and the CSS works.
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.