Pages: Previous12
Current Page: 2 of 2
Re: $_GET not working when using htaccess wampServer
Posted by: Halialduhoky (185.136.149.---)
Date: August 24, 2017 09:18PM

Hello sir, Dear.
Thanks for all your replaying and trying to help me to resolve my issue.

Sir, my problem resolved by adding MultiViews in htaccess option smiling smiley
But please i have a question.

In Xamp and many of hosts as i kknow ( MultiViews ) is enabled by default.
So why you didn't enabled it by default, or adding it anywhere to enable or disable it by server manager?



I really love wamp server, because that i never want to use another servers, and i hope to be better and better.

I'm full stack developer and designer and Graphic designer hope to work with your team.

Special thanks to you bro Otomatic.

Options: ReplyQuote
Re: $_GET not working when using htaccess wampServer
Posted by: Otomatic (Moderator)
Date: August 24, 2017 09:59PM

Hi,

> In Xamp and many of hosts as i kknow ( MultiViews ) is enabled by default.
> So why you didn't enabled it by default, or adding it anywhere to enable or disable it by server manager?
In Wampserver:
Enabled in Apache http.conf
<Directory "${INSTALL_DIR}/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
    # [httpd.apache.org]
    # for more information.
    #
    Options +Indexes +FollowSymLinks +Multiviews
Enabled in VirtualHost localhost
# Virtual Hosts
#
<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
Enabled in add_vhost.php
		$httpd_vhosts_add = <<< EOFNEWVHOST


<VirtualHost {$c_UsedIp}:{$c_PortToUse}>
	ServerName {$vh_name}
	DocumentRoot "{$vh_folder}"
	<Directory  "{$vh_folder}/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

EOFNEWVHOST;
But it is not Wampmanager that creates .htaccess files

About +Multiviews:
This option gets ignored if set anywhere other than <Directory>, as mod_negotiation needs real resources to compare against and evaluate from.

See : [httpd.apache.org]

> If not i do not need to update my wampServer!
You are strongly encouraged to apply Wampserver updates.
This only affects Wampserver internal scripts and does not modify any of your Apache, PHP, MySQL, or MariaDB versions that you use, nor does it alter your local sites.
These updates are required to install the latest versions of Apache, PHP, MySQL or MariaDB addons.
Moreover, the "Changelog" only indicates the main lines of the modifications made and does not mention all the other small corrections like:
- typographical errors
- small bug fixes
- Add or change features

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.9/7.0.23/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.9/7.0.23/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 1 time(s). Last edit at 08/25/2017 09:38AM by Otomatic.

Options: ReplyQuote
Re: $_GET not working when using htaccess wampServer
Posted by: RiggsFolly (Moderator)
Date: August 30, 2017 06:38PM

Hhhaaaaaaaa


After all this, where you tried to blame everyone else in the universe the answer was
to remove MultiView

See StackOverflow

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /cp/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^examples/(.+?)/?$ /cp/examples.php?key=$1 [L,QSA]

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.