If a user extracted the files of my php application to example http://example.com/test/webapp/, the absolute links in my application won’t work anymore.
How can I get the path /test/webapp/ to add it to my absolute links?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can with:
make sure your links are always relative in your pages, so when you move your site to another domain they still work.
Check out all other
$_SERVERvariables by executingphpinfo().for redirecting, you can use: