logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: ReWrite doesn't work correctly
Author
donpelajo



Joined: 02 Oct 2013
Posts: 1
Location: Milano

PostPosted: Wed 02 Oct '13 11:11    Post subject: ReWrite doesn't work correctly Reply with quote

Hi,

Yesterday i was putting a website to manage in localhost but i had to abilitate the usage of mod_rewrite. After spending hours searching for solutions, nothing happened and now i'm stuck.

The problem is that when i'm in the index and i try to open links i have this message

The requested URL /c3click.php was not found on this server.

Here are the steps that i followed:

1) Search for LoadModule ReWrite and decommenting
2) Search for Servername localhost

<Directory />
AllowOverride all
Require all granted
</Directory>

3) Search for C:/wamp/www

Options all

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost

4) Reboot the server

In the beginning of my .htaccess file there's written

RewriteEngine On
RewriteBase /
Options -Multiviews

My configuration is Windows 7, Apache 2.4.4 on Wamp Server 64bit.

In the apache_error.log file i discovered this

[Wed Oct 02 10:33:47.582049 2013] [:error] [pid 2412:tid 1496] [client 127.0.0.1:50195] script 'C:/wamp/www/c3click.php' not found or unable to stat, referer: http://localhost/Lavoro/C3click/01-10-2013_Sito/

I'm very noob so i don't understand all is written there,

Thanks for the help.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 09 Oct '13 15:27    Post subject: Reply with quote

You mixed the old config style Allow from with the new config style (Require all granted ). use only the new style!

Does c3click.php exist?
Back to top


Reply to topic   Topic: ReWrite doesn't work correctly View previous topic :: View next topic
Post new topic   Forum Index -> Apache