How to make apache support. htaccess, a problem I found when I checked seo optimization today, that is, defining the 404 error of the page has some benefits for website optimization, so I also need to set the page that cannot be found on my host. Below is my experience today.
Step 1: Find the httpd. cof file in the apache installation directory and find
<Directory/>
Options FollowSymLinks
AllowOverride none
</Directory>
We only need to change the none of the blue words to all and restart apache,
Step 2: Now we need to transfer the content that cannot be found on my website to the 404 page I specified, so we need to write it. htaccess document, which cannot be created in windows without the main file name. I found the file previously modified from lx.
ErrorDocument 404/index. php
It is okay to add this sentence, but it is best not to transfer it to the homepage.
After writing, this site is original:, reprinted please note: www.111cn.net