Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-09-22 09:57:31
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Redirect www.mysite.com/admin
How do I redirect that to the panel?
(edited topic title. -Els)
Last edited by els (2010-09-24 14:12:06)
Offline
Re: Redirect www.mysite.com/admin
Hi
maybe using htaccess? (I am not a guru about htaccess :( )
Offline
#3 2010-09-22 10:45:35
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Redirect www.mysite.com/admin
I tryed this with htacces:
Redirect 301 /admin /textpattern
But it says: “Contact with webmaster..”
Last edited by helmz (2010-09-22 10:46:12)
Offline
#4 2010-09-22 10:50:37
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Redirect www.mysite.com/admin
try this:
redirect 301 /admin http://www.yoursitename.com/textpattern/index.php
Offline
#5 2010-09-22 11:01:11
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Redirect www.mysite.com/admin
It goes to main website page, not to control panel, thanks for the try
Offline
#6 2010-09-22 11:06:22
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Redirect www.mysite.com/admin
helmz wrote:
It goes to main website page, not to control panel, thanks for the try
Are you sure? Didn’t you forget the …/textpattern part? It works for me
Offline
#7 2010-09-22 11:18:20
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Redirect www.mysite.com/admin
nop, not working :O
Offline
#8 2010-09-22 11:29:45
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Redirect www.mysite.com/admin
helmz wrote:
nop, not working :O
Sorry then, I finished my ideas. Let’s hope someone with more knowledge can help
Offline
Re: Redirect www.mysite.com/admin
Did you put the redirect at the top of .htaccess? (just below RewriteEngine On
, I think)
Code is topiary
Offline
Re: Redirect www.mysite.com/admin
This works on all of my TXP sites:
RewriteEngine On
RewriteRule ^admin/(.*) http://yourdomain.com/textpattern/$1 [R=301,L]
The order you place it in the .htaccess file does matter.
Offline
#11 2010-09-22 16:33:51
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Redirect www.mysite.com/admin
this is it, still not working:
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteRule ^admin/(.*) http://myhost.com/textpattern/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
Last edited by helmz (2010-09-22 17:03:37)
Offline
Re: Redirect www.mysite.com/admin
If you go here:
http://marc.swytdreams.com/idesa/admin/
it works.
If you want:
http://marc.swytdreams.com/admin/
to go to:
http://marc.swytdreams.com/idesa/textpattern
then you need to create/edit the .htaccess that is at the root level.
Offline