The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
address of admin panel
#7
I used this method and it seems to work. I choose not to use shell, because I'm not comfortable using it and don't want to mess anything up.
After modifying the .htaccess file to redirect /admin/ to 404 page, I created a .php file in GS root directory and used the php symlink function.

I simply put the following in the .php file and went to the page in the browser:
PHP Code:
<?php symlink('/home/site/public_html/admin''/home/site/public_html/newadminlocation'); ?>

Once the page loaded, the symlink was created and I just deleted that .php file.

Remember, if using symlinks, make sure "Options +FollowSymLinks" is in your .htaccess file.

- Chris


(2010-10-06, 13:54:31)yojoe Wrote: K, here's my 1st solution to change admin's panel address.
It needs access to shell, as there has to be created a symbolic link to admin's directory.
I've got one more idea, but I'll test it later.

Those who have access to shell, and are willing to hide /admin URI to disallow unauthorized access, here's the list of things needed to be done.

1. disable access to /admin, and let visitor know, that there's no data under this path
It's quite simple, as we will just show him 404 error page Smile
Add to .htaccess below lines
Code:
RewriteCond %{REQUEST_URI} =/admin/
RewriteRule ^(.*) 404.html [R=301,L]
First line looks if URI/URL contains "admin" string. If it's true, then we serve a 404 html document (page not found). Since my testing environment stays under a subdomain, a 404 error page has to stay somewhere inside GS directory tree. So be sure to provide a valid path to error page, any page you'd like to show, instead of admin panel, or a non existing page.

2. Time to add a symbolic link, to have access to admin panel.
Login to your shell account (using for example putty). Browse to gs root directory, and create a symbolic link using below command
Code:
ln -s admin  hiddenpanel
where "hiddenpanel" is the name, under which you will have access to your GS admin panel.

After finishing second step, test if everything works as supposed.
You should get an error page after entering http://yourdomain/admin, while using http://yourdomain/hiddenpanel should give you access to GS admin panel.


I'll try to provide a solution based only on htaccess, for those who don't have access to shell on their hosting accounts. At least if everything works well Smile
Reply


Messages In This Thread
address of admin panel - by yojoe - 2010-09-22, 10:12:31
RE: address of admin panel - by shawn_a - 2013-02-02, 14:02:35
RE: address of admin panel - by yojoe - 2013-02-04, 00:16:09
address of admin panel - by JWH_Matthew - 2010-09-22, 10:41:42
address of admin panel - by yojoe - 2010-09-23, 22:20:08
address of admin panel - by Zegnåt - 2010-09-24, 00:41:16
address of admin panel - by yojoe - 2010-09-24, 10:15:39
address of admin panel - by yojoe - 2010-10-06, 13:54:31
RE: address of admin panel - by chris1 - 2013-02-02, 11:59:15



Users browsing this thread: 2 Guest(s)