Oznerologos Posted December 30, 2019 Share Posted December 30, 2019 (edited) Hi everyone ! I am currently working with two prestashop (1.7.5.1) websites, one for prod and one for test (both are hosted and online). Problem is, the test website was once the production website so even if it doesn't appear in most browsers, people with old links can still reach the test website. I managed to redirect from the test homepage to the prod homepage with basic PHP conditions but it only works for the home page as I should put my php code on all my files... Does Prestashop give an option to white list the whole test website so only I (and the people I work with) can access it ? Thanks everyone ! Edited December 30, 2019 by Oznerologos Added prestashop version (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted December 30, 2019 Share Posted December 30, 2019 Try something like this: https://stackoverflow.com/questions/293285/want-to-redirect-all-visitors-except-for-me https://stackoverflow.com/questions/8985502/htaccess-redirect-to-all-ips-but-mine 1 Link to comment Share on other sites More sharing options...
Oznerologos Posted December 30, 2019 Author Share Posted December 30, 2019 Worked perfectly, thanks a lot ! ! Link to comment Share on other sites More sharing options...
shon Posted April 14, 2020 Share Posted April 14, 2020 Good morning, i have a problem on the same theme about the facebook crawler IP addesses. When I activate geolocation, in the list of IPs in whitelist it is impossible to establish which Facebook IPs are a priori. From their explanation it seems that it is necessary to send the command: (source: https://developers.facebook.com/docs/sharing/webmasters/crawler/?locale=en_US) whois -h whois.radb.net - '-i origin AS32934' | grep ^ route The problem is that at the PS level I don't know where I could enter this command as at the server level I would prefer not to enable it (and I don't even think I can do it). I specify that I am not a maximum expert so I could also have unclear ideas on the subject. Would anyone know how to solve this problem? Thanks to whoever will reply. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now