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

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



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 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

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


Sorry, only registered users may post in this forum.