Vous n'êtes pas identifié(e).
13 février 2024 Sortie de Dotclear 2.29
Pages : 1
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
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
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
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
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
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
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
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
Pages : 1
Vous n'êtes pas identifié(e).