This article describes the Wampserver setting Apache pseudo static presence 404 Not Found and you don ' t have permission to access/on this server workaround. Share to everyone for your reference. Specifically as follows:
When 404 Not Found appears:
Make sure LoadModule rewrite_module modules/mod_rewrite.so Open
And then
Copy Code code as follows:
<directory/>
Options FollowSymLinks
allowoverride None #此处把none changed to all
Order Allow,deny
Deny from all
</Directory>
appears: You don ' t have permission to access/on this server
Copy Code code as follows:
<directory/>
Options FollowSymLinks
allowoverride None #此处把none changed to all
Order Allow,deny
Deny from all #此处把deny改成Allow
</Directory>
Make sure the default home page is set:
Copy Code code as follows:
<ifmodule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>
Sometimes setting Apache pseudo static on a wampserver will still appear
Don ' t have permission to access/on this server
The Tips
This is further modified:
Copy Code code as follows:
<directory/>
Options FollowSymLinks #此处将FollowSymLinks改为All
AllowOverride All
Order Allow,deny
Deny from Allow
</Directory>
Change Options FollowSymLinks to: Options all
Problem can be solved.
Attached (pseudo static test code):
New PHP page index.php:
<?php
if ($_get) {
echo $_get["id"];
>
Create a file under a sibling directory. htaccess, write a pseudo static rule as follows:
Copy Code code as follows:
Rewriteengine on
Rewriterule ^t_ (. *). html$ index.php?id=$1
URL Address bar Write:
Http://localhost/t_aaa.html
Pseudo-static setting succeeds output: AAA
You want this article to help you with your Apache server settings.