Now I am writing a website, and I have encountered some problems.

Source: Internet
Author: User
Now I am writing a website. I have encountered some problems, such as the web pages written in php. Now I am writing a website. I have encountered some problems, such as the web pages written in php. That is to say, the url of the page I crawled contains 2012-08-31/89765. I want to hide the date in the address bar, but in the background, 2012-08-31/89765 is used as the link_id, help me to see if there is any good solution? I think I am writing a website now and have some problems with the web pages written by php.
Now I am writing a website. I have encountered some problems, such as the web pages written in php.
That is to say, the url of the page I crawled contains 2012-08-31/89765. I want to hide the date in the address bar, but in the background, 2012-08-31/89765 is used as the link_id, help me to see if there is any good solution? I want to add another time in the url to store the date. I just want to see if there are other useful methods. can js be implemented? Js is just ready to learn. it's not very good yet. please help me !!

------ Solution --------------------
The figure above indicates that the collected url is followed by 2012-08-31/89765. do you want to display the url without this section, but you also need to import this section into the database?

Find a split point explode for the collected url, and obtain the following section and save it to the database. You can set a jump url by yourself.

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.