Easyphp and .htaccess

I need help with EasyPHP and .htaccess.

The .htaccess file does not work, I think this is because I did not configure something using EasyPHP.

My version of EasyPHP 5.3.8.1

Maybe someone knows how to fix this problem?

.htaccess file:

Options +FollowSymlinks

RewriteEngine on

RewriteRule ^get/([^/]+) /func/get.php?link=$1 [NC]

+3
source share
2 answers

The default Apache installation in EasyPHP did not activate the ability to use .htaccess files to change the server configuration in folders.

You must tell Apache which configuration can be changed with .htaccess files and in which folder. To enable all configuration changes on the main web server, you should edit http.conf (in the Apache / conf folder) and find:

 <Directory "${path}/www"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> 

and change

  AllowOverride None 

to

  AllowOverride All 

To better configure it, read the AllowOverride documentation at: http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

Also check that http.conf is activated by mod_rewrite, look for:

 #LoadModule rewrite_module modules/mod_rewrite.so 

And remove the leading "#"

 LoadModule rewrite_module modules/mod_rewrite.so 
+5
source

When working on a local website, I fixed this problem by adding the website path (with .htaccess) as a virtual host. Easyphp has a module for this: "Virtual Hosts Manager". This wil will take care of httpd.conf automatically.

+1
source

All Articles