Content last modified Monday 6 March 2017
hop to #bottom
Categories:
About It:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

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.

Article Request Count:
Posted here:
27 Feb 2005
Article modified:
27 Feb 2005

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (2)

hazel:
Not working…

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]
jakob:

hazel, how about the combination of two rules:

RewriteRule ^admin$ /admin/ [R=301,L]
RewriteRule ^admin/?(.*)$ /textpattern/$1 [NC,L]

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.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern