This question already has an answer here:
I looked for a way to change from HTTP to HTTPS.
By mistake I switched my insecure and secure URL in config-web-secure/, and added the word magento to them both. As a result I get a 403 error on my admin panel and website. I tried changing the URL in the PHP but that didn't work.