bryanmc1988 Posted March 15, 2012 Share Posted March 15, 2012 well i have a problem... i have a website running and anyone can get to the admin control panel login page by going to "mywebsite.com/admin" how can i hide this or change it so that they cant get to it unless they know it...? problem 2... when u visit my website... its shows in the url the path of the file for example... "mywebsite.com/register.php" when on the register page or like "mywebsite.com/sells.php" if on the sells page... how can i hide it so that only my website name is showing and not the path of the file? Link to comment https://forums.phpfreaks.com/topic/258959-help-hiding-websitecomadmin-control-panel-php/ Share on other sites More sharing options...
marcus Posted March 15, 2012 Share Posted March 15, 2012 1. Password protect the admin page, or maybe move it to a folder that isn't as easily accessible with the name "admin" 2. What's wrong with showing the file name? You could mod_rewrite, or a dynamic index page, so it would be website.com/sells or website.com/index.php?p=sells respectively Link to comment https://forums.phpfreaks.com/topic/258959-help-hiding-websitecomadmin-control-panel-php/#findComment-1327513 Share on other sites More sharing options...
AyKay47 Posted March 15, 2012 Share Posted March 15, 2012 well i have a problem... i have a website running and anyone can get to the admin control panel login page by going to "mywebsite.com/admin" how can i hide this or change it so that they cant get to it unless they know it...? If it requires a login, what is the issue? problem 2... when u visit my website... its shows in the url the path of the file for example... "mywebsite.com/register.php" when on the register page or like "mywebsite.com/sells.php" if on the sells page... how can i hide it so that only my website name is showing and not the path of the file? This isn't really a good idea as this would not be SEO friendly for crawling etc. Typically people hide the extension of the page to: 1. Add an extra layer of security 2. To create "Pretty URLS". To do the above, look into .htaccess and mod_rewrite Link to comment https://forums.phpfreaks.com/topic/258959-help-hiding-websitecomadmin-control-panel-php/#findComment-1327515 Share on other sites More sharing options...
bryanmc1988 Posted March 15, 2012 Author Share Posted March 15, 2012 what should i look for inside the .htaccess and mod_rewrite? and what should i change in side them? yes i want the url to look pretty like a girl ... but honestly no just so its more clean looking lol so i looked inside the .htaccess and all i can see is "RewriteEngine On RewriteRule ^(.*),(.*)$ $2.php?rewrite_params=$1&page_url=$2" and there is no mod_rewrite file anywhere Link to comment https://forums.phpfreaks.com/topic/258959-help-hiding-websitecomadmin-control-panel-php/#findComment-1327517 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.