You have a website and you deploy it on WampServer. The home page run Success, but when you click the content page (example: http://your-site.com/content/article-one.html) you will get an error 403 Forbidden you don’t have permission to access.

Solution for the error 403 Forbidden you don’t have permission to access / on this server. All you need to resolve it is enable Rewrite Module on WampServer and config the Rewriter Role


Here are the step to config site
  1. Enable Rewriter Module by select rewrite_module
















2. Config WampServer
- Open httpd.conf file to enable Virtual Host (F:\wamp\bin\apache\Apache2.2.17\conf\httpd.conf)
- Enable Virtual Host
+ Remove the “#” from the begging of the following line
#Include conf/extra/httpd-vhosts.conf
+ Open file F:\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-vhosts.conf to config virtual host
  • At line 15 add code
    <Directory F:/WebRoot/your-site-com>
    Order Deny,Allow
    Allow from all
    </Directory>
  • At the end of file add code
<VirtualHost *:80>
ServerAdmin webmaster@your-site.com
DocumentRoot F:/WebRoot/your-site-com
ServerName your-site.com
ServerAlias www.your-site.com
</VirtualHost>
 
3. Config Virtual Host to enable Rewrite URL

- Update the VirtualHost in :\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@your-site.com
DocumentRoot D:/Your-Site
ServerName your-site.com
ServerAlias www.your-site.com
 <Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
 
Now, Restart the WampServer, you site now is support Rewriter URL

4. Resolving the DNS issue
 Opend file C:\windows\system32\drivers\etc\hosts and add domain