View Full Version : admin directory with password protection
I have pp 1.7.1 installed.
yesterday, for the first time, I had entered a comment to reply another comment.
after my comment submission I became a message "username and password", wait 5 second page was white, there was no link to the css file.
my dir /admin/ of the server was password protected (.htaccess), I deleted the .htaccess file in the /admin dir and then was no layout problem and no username question.
I had protected the dir because anyone knows that path and I wanted more protection.
can I rename /admin to another word without path problems?
Dkozikowski
01-23-2008, 08:22 AM
You should be able to without much hastle.
Some addons such as my own check to make sure they are running in the admin directory so you would have to change some code there. (if you use any of my admin addons of course)
Besides that, the only place I was able to quickly find where the admin path was hardcoded was on line 282 of the includes/functions_comments.php file where it references to a CSS file.
<link rel="stylesheet" href="admin/admin_index.css" type="text/css" />
So make sure you change admin/admin_index.css to your new folder name
Dkozikowski
01-23-2008, 08:29 AM
Also note, changing the admin directory MAY break install / upgrade procedures.
as you say: the includes/functions_comments.php file where it references to a CSS file
that was my problem. the submit comment page refers to the /admin/ dir
if I place my .htaccess file in the /admin dir again, copy the file admin/admin_index.css to another dir, change the file includes/functions_comments.php with the new path to the admin_index.css file, could this be a solution instead to rename the admin dir?
but I think that in the most pp photoblog the admin dir is opened. some layouts have a direct link on the homepage to the admin section
Dkozikowski
01-23-2008, 08:49 AM
as you say: the includes/functions_comments.php file where it references to a CSS file
that was my problem. the submit comment page refers to the /admin/ dir
if I place my .htaccess file in the /admin dir again, copy the file admin/admin_index.css to another dir, change the file includes/functions_comments.php with the new path to the admin_index.css file, could this be a solution instead to rename the admin dir?
yes, that could be a solution. try it out!
but I think that in the most pp photoblog the admin dir is opened. some layouts have a direct link on the homepage to the admin section
Most people know where to look for the PP admin directory just as most people know where to find the Wordpress admin directory.
It's not a big concern unless you are extremely paranoid about someone trying to gain access to your administration panel. But, an extra line of defense (.htaccess) won't hurt anything either.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.