Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-26 21:18:40

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

[howto] redirect /textpattern to the correct admin URL (for multi-site setup)

Hi,

if you are using the new multi-site setup feature you may want to redirect the any /textpattern URL to the right place.
You may want to do this for:

  • make old bookmarks still valid
  • “fix” plugins that is pointing to /textpattern (there are a few out there)

So, for doing the redirection, you simple add a Redirect command before the rewriting rules on your site’s standard TXP .htaccess.
If you’ve set up TXP to serve the admin side on /admin, you add:

Redirect 301 /textpattern /admin

If you’ve set up TXP to keep the admin side admin subdomain (http://admin.subdomain.com), you add:

Redirect 301 /textpattern http://admin.domain.com

Something similar could be used


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB