Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

redirect specific file with hosts

Sorry if this is the wrong section but I couldn't find one more relevant. I have been trying to figure this out for awhile and tried many ways but is there a way to redirect your hosts file to a specific file? Lets say a website with a file name at the end is called (fakewebsite(dot)com/login.php) is the specific url I would like to redirect to from hosts without redirecting to the entire website, is this possible and if not from hosts are there any other ways?
You can do this by adding the following to your .htaccess file.

Code
redirect 301 /login.php http://www.example.com/newlogin.php

I think this is what you are asking anyways.

If not please elaborate further.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by focussSep 16, 2019 11:34 AM 4 157 Sep 16, 2019 11:34 AM
Last Post: pastort
by r0saluxJul 28, 2018 09:29 PM 0 132 Jul 28, 2018 09:29 PM
Last Post: r0salux
[Plugin] by skullNov 20, 2017 03:08 PM 0 126 Nov 20, 2017 03:08 PM
Last Post: skull