Hello, I am looking to improve the security of the Website we currently are using. I would like to make it so if people type in the link to the Administration Center it would redirect them to another page, but I would like to change the link to the Administration Center as well. Would anyone know how to do this on SMF? I also have Simple Portal installed with it as well.
Thanks.
Changing the URL and redirecting
-
- New to forums
- Posts: 12
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Aug 06, 2014 2:15 am
Re: Changing the URL and redirecting
Here is some info I found on http://stackoverflow.com/questions/8985 ... s-but-mine
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=123.45.67.89
RewriteRule index.php$ /construction.php [R=301,L]
put this in a .htaccess file inside your admin directory.
Replace the IP with yours, and replace the index.php with the file in your admin directory, and construction.php with your site index.
Let me know how it works.
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=123.45.67.89
RewriteRule index.php$ /construction.php [R=301,L]
put this in a .htaccess file inside your admin directory.
Replace the IP with yours, and replace the index.php with the file in your admin directory, and construction.php with your site index.
Let me know how it works.
Not a NFO employee
-
- New to forums
- Posts: 12
- Joined: Wed Aug 06, 2014 2:15 am
Re: Changing the URL and redirecting
This might be a retarded question but I honestly have no idea where the admin directory is. I've looked up .htaccess would I put that in the root file */public/.htaccess?soja wrote:Here is some info I found on http://stackoverflow.com/questions/8985 ... s-but-mine
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=123.45.67.89
RewriteRule index.php$ /construction.php [R=301,L]
put this in a .htaccess file inside your admin directory.
Replace the IP with yours, and replace the index.php with the file in your admin directory, and construction.php with your site index.
Let me know how it works.
Re: Changing the URL and redirecting
No, what is your admin panel link?
For example at my community it is https://gflclan.com/admin/index.php
So I would place the .htaccess in my public/admin/ folder.
For example at my community it is https://gflclan.com/admin/index.php
So I would place the .htaccess in my public/admin/ folder.
Not a NFO employee
-
- New to forums
- Posts: 12
- Joined: Wed Aug 06, 2014 2:15 am
Re: Changing the URL and redirecting
Mine is index.php?action=adminsoja wrote:No, what is your admin panel link?
For example at my community it is https://gflclan.com/admin/index.php
So I would place the .htaccess in my public/admin/ folder.
And there is no admin directory. I am using SMF
-
- This is my homepage
- Posts: 1573
- Joined: Sun Jun 26, 2011 8:03 am
Re: Changing the URL and redirecting
Do you have a admin.php?
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Find Your GSP Coupons at gspreviews.com/coupons/
-
- New to forums
- Posts: 12
- Joined: Wed Aug 06, 2014 2:15 am
Re: Changing the URL and redirecting
The clostest thing I have to that is Admin.template.php and that's located in the themes/default.
( Sorry for the late reply been on vacation )
( Sorry for the late reply been on vacation )