Jump to content

mv admin directory question


derekg

Recommended Posts

Posted

Howdy,

When I mv my admin directory to a random name for security, the URL when entered (such as host.com/asdf1234) takes me back to the old admin URL (such as host.com/admin). There is no .htaccess file, so not sure what is redirecting from the directory name back to the old admin directory. Any thoughts?

Thanks, Derek

Posted

You need to add a constant to constants.php for this purpose, however note that we may not support the behavior forever.

			//--------------------------------------------------------------------------------------
			// DEPRECATED OPTIONS: CHANGE AT YOUR OWN RISK
			// These constants were once customisable but their fucntionality should now be
			// considered deprecated.
				
				// AdminCP Obscurity Settings
				// It was once recommended for site owners to rename the directory for security
				// and set the CP_DIRECTORY constant so some links still work, the upgrader can put
				// files in the right place, etc. While it is still honoured, it is no longer recommended
				// as much more secure alternatives like two factor authentication now exist.
				'CP_DIRECTORY'	=> 'admin',	// The name of the directory where the AdminCP is

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...