Directory path issues
Bishe is the root directory that contains a
First-level directory regist. PHP and Control folders, index.php
The second-level directory control folder contains the register. Php
Register. PHP inside Jump statement to index.php
echo "<script>window.location.href= ' index.php ';</script>";
Result the actual path is bishe\control\index.php
What I want is bishe\index.php.
How to modify?
------Solution--------------------
echo "<script>window.location.href=". /index.php ';</script> ';
------Solution--------------------
<script>window.location.href= '/index.php ';</script>
/index.php represents the index.php under the root directory
Or:.. /index.php represents the index.php in the previous level, which is the same effect in your needs
index.php or./index.php represents the index.php in the current directory
Also, the standard path delimiter is/, not \
------Solution--------------------
Figuring out the problem with the relevant path
./Sibling
.. /upper Level
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.