PHP input in the address bar, leading to invalid CSS styles. how to redirect to a specified page-php Tutorial

Source: Internet
Author: User
PHP input in the address bar, leading to invalid CSS styles. how can I redirect to a specified page? for example: www.test.com/test.php, if I enter it in the address bar, the result of www.test.com/test.php/sdfsdf/klklj leads to test. php CSS style invalid. please advise me how to jump to an error handling page, such as www.test.com/error.php


Reply to discussion (solution)

Pseudo-static, non-compliant URLs can jump to the custom 404 page
I wonder why the csssu style you mentioned is invalid.
Are other data displayed normally on the page?

Reference css with relative root directory path or absolute path

Reference css with relative root directory path or absolute path
+ 1

Thank you !!!
Thank you!
This problem will not occur if css is referenced in the absolute path.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.