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