I want to refer to a page without the .php extension and not to use the .htaccess file, as a documentation says: You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Answer You can write the configuration you want (a “rewrite rule” in
Tag: apache
Can read Data from mysql database but cant write data into the database Using PHP 5.6 on Ubuntu 16.04?
I have a PHP 5.6 project, when I run it on localhost in windows/xampp it works perfectly fine.But when I use it in ubuntu/apache it connects to the db,reads data from the db perfectly but doesnt write …
What’s the difference between xdebug.ini and php.ini
Recently I installed lamp and php-xdebug on an ubuntu 16.04 box. I noticed that now I have the following files /etc/php/7.0/apache2/conf.d/20-xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini /etc/…
Symfony3 – Assets not working properly in Production
My SF3 application is working just fine in dev built-in PHP server. However some assets give me an error when getting to a production Apache server : the images are showing a 404 error, and a Bundle …
pgsql extension is not loading
I am trying to use pgsql extension on Windows 10 64-bit (WAPP). I have: restarted Apache uncommented all postgresql extensions in php.ini used LoadFile to load pgsql.dll moved pgsql.dll to Apache bin (I tried both dll from php folder and from postgresql) But still no result. pgsql is visible only in php.exe -m but not in phpinfo(), extension_loaded(), get_loaded_extensions(). My
Add New Parameter to Existing URL using htaccess
I have a url like below But i want to add an additional parameter to this url like below. For this i am using .htaccess to redirect with additional parameter but it is not redirecting still show original url. RewriteRule /index3.php$ index3.php?email=$1 [R] But it is not working. How can i redirect with additional parameter? Answer Try this simple one.
How to perfectly set up virtual host for codeigniter project?
I am trying to make a virtual host for a codeigniter project. I have done this in httpd-vhosts.conf: and in application/config/config.php, and the browser opens the landing page. but when transiting from any other uri it says object not found. And when i configure httpd-vhosts.conf like this: It arises problem with assets things, i,e images and some css doesnt loads.
Image upload on linux server (PHP)
I am trying to upload image to server. The following code works when I use on local pc but when I try on server, image is not uploaded. Answer Do you have the same file permissions on server? Does folder /var/www/html/uploaded exist and is writable by web server user (usually www-data)? Try running following command in server terminal: Where www-data
Running two PHP versions on the same server
I have two projects on the local server, one project is running PHP5.6 and the other one is running PHP7.0. Now would it be possible to enable these two versions based on the projects? I already tried adding AddHandler application/x-httpd-php7 .php in one of the project htaccess but it’s not working. Currently, PHP7.0 and PHP5.6-fpm have already installed on the
How to redirect HTTP to HTTPS using XAMPP
I’m trying to redirect HTTP to HTTPS using XAMPP. I’ve already seen all questions and multiple answers on multiple websites recommending this website: XAMPP: SSL Encrypt the Transmission of Passwords …