Wampserver set Apache pseudo static appearance 404 Not Found and you don ' t have permission to access/on this server solution analysis [Original]_ server Other

Source: Internet
Author: User

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.

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.