Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2012-10-11 01:54:15

clearingthedots
Membre
Inscription : 2010-06-09

Chaging name of admin folder

What files and code would I need to modify to change the name of the "admin" folder? I would like to make my login page difficult to find.

Thanks

Hors ligne

#2 2012-10-11 08:28:04

Black Angel
Membre
Inscription : 2008-05-11

Re : Chaging name of admin folder

Hello,

I have made this on my installations.

You need to modify the value DC_ADMIN in the file /inc/config.php

You have this in the french documentation : http://fr.dotclear.org/documentation/2. … an-install

Hors ligne

#3 2012-10-16 01:16:32

clearingthedots
Membre
Inscription : 2010-06-09

Re : Chaging name of admin folder

Thanks,

I changed the admin folder name and then updated the config.php file. Now, if I type the OLD admin address, dotclear redirects me to the new admin address.

Where do I change dotclear's behavior so it doesn't redirect the request?

Thanks again.

Hors ligne

#4 2012-10-22 05:54:13

Black Angel
Membre
Inscription : 2008-05-11

Re : Chaging name of admin folder

Hello,

Sorry for my mistake. I have changed the dotclear folder name in a clean install, not the admin folder. I have an admin URL like this www.myblog.com/aStrangeName/admin. And my blog URL is www.myblog.com with public and themes folders with URL www.myblog.com/public or www.myblog.com/themes.

I have no idea for change only the admin folder name.

Hors ligne

#5 2012-10-23 12:24:08

Lomalarch
Responsable du photocopieur
Lieu : Colombes (92)
Inscription : 2006-05-02
Site Web

Re : Chaging name of admin folder

That seems strange, like you had some rederecting instruction in .htacess, for example.

By the way, you should be aware that changing the admin directory name will prevent you from upgrading automatically…


RTFM attitude : https://fr.dotclear.org/documentation/2.0
Le chantier tips, tutos et astuces : http://tips.dotaddict.org/
Rien nulle part??? une petite recherche sul’ forum, alors?: https://forum.dotclear.org/search.php ?

Hors ligne

#6 2012-10-27 00:45:08

clearingthedots
Membre
Inscription : 2010-06-09

Re : Chaging name of admin folder

Thanks. Following is a copy of my .htaccess. Perhaps you can find the problem in it?

My blog URL is:

mydomain.com/myblog

the .htaccess file in located at:

mydomain.com

------------
AddType x-mapp-php5 .php


RewriteEngine on

RedirectPermanent /myblog/blog1.php http://mydomain.com/myblog/

<Files 403.shtml>
order allow,deny
allow from all
</Files>


# Bad bots, see http://www.clockwatchers.com/robots_bad.html

SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
SetEnvIfNoCase User-Agent "^ExtractorPro" bad_bot
SetEnvIfNoCase User-Agent "^CherryPicker" bad_bot
SetEnvIfNoCase User-Agent "^NICErsPRO" bad_bot
SetEnvIfNoCase User-Agent "^Teleport" bad_bot
SetEnvIfNoCase User-Agent "^EmailCollector" bad_bot
SetEnvIfNoCase User-Agent "^DNSRight" bad_bot #own addition

<Limit GET POST>
    Order Allow,Deny
    Allow from all
    Deny from env=bad_bot
</Limit>

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|pdf|wma)$ - [F,NC]

Dernière modification par clearingthedots (2012-10-29 16:41:45)

Hors ligne

#7 2012-11-01 08:31:57

Lomalarch
Responsable du photocopieur
Lieu : Colombes (92)
Inscription : 2006-05-02
Site Web

Re : Chaging name of admin folder

I don’t see in those rules anything implying the admin directory, and don’t see how that could interfere. I could test the same modification in a test install but don’t really see how this redirection is possible…


RTFM attitude : https://fr.dotclear.org/documentation/2.0
Le chantier tips, tutos et astuces : http://tips.dotaddict.org/
Rien nulle part??? une petite recherche sul’ forum, alors?: https://forum.dotclear.org/search.php ?

Hors ligne

#8 2012-11-08 02:15:34

clearingthedots
Membre
Inscription : 2010-06-09

Re : Chaging name of admin folder

Thanks for taking a look. I didn't think it could be the htaccess file but wanted to make sure. I would appreciate if you could run the test and let me know how it works for you.

Thanks again.

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map