Url rewriting is not clear, and errors always occur.

Source: Internet
Author: User
I have added an Alias with Apache. the newly generated url is localhostgyjw and will automatically jump to localhostgyjwindex. phplocalhostgyjwindex. php is the login page of my website. after logging in, I jump to the htt url Rewrite page. I don't quite understand it, and there are always errors.
I added a new Alias with Apache. The new website is http: // localhost/gyjw/
Enter http: // localhost/gyjw/to automatically jump to http: // localhost/gyjw/index. php
Http: // localhost/gyjw/index. php this is the login page of my website. after logging in, you will jump to http: // localhost/gyjw/main. php
Now I want to rewrite the http: // localhost/gyjw/index. php and http: // localhost/gyjw/main. php addresses.
Change http: // localhost/index. php and http: // localhost/main /? Id = 101
I wanted to rewrite the url by modifying the. htaccess file, but the RewriteCond and RewriteRule were not completed for a long time. I always jumped out of the error page 500, but I still don't understand it!
Can anyone help me implement this?

Url. htaccess apache

Share:


------ Solution --------------------
Reference:
Why? Fun = 000, but include ("index.html? Fun = 000 "); if an error occurs, it means you cannot open steam. I have no access to google.


Include is directly used, index.html? Fun = 000 is switched to check. php only after Apache
If you include a complete URL, such as http: // localhost/index.html? Fun = 000 is normal, provided that your include can reference the URL

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.