Skip to main content

Questions tagged [apache]

Use this tag (along with an appropriate programming-language tag) for programming questions relating to the Apache HTTP Server. Do not use this tag for questions about other Apache Foundation products. Note that server configuration questions are usually a better fit on https://serverfault.com

1358 votes
13 answers
212k views

UTF-8 all the way through

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where ...
mercutio's user avatar
  • 22.4k
420 votes
37 answers
951k views

PHP code is not being executed, but the code shows in the browser source code

I'm trying to execute some PHP code on a project (using Dreamweaver) but the code isn't being run. When I check the source code, the PHP code appears as HTML tags (I can see it in the source code). ...
Gui's user avatar
  • 9,695
161 votes
5 answers
49k views

Reference: mod_rewrite, URL rewriting and "pretty links" explained

"Pretty links" is an often requested topic, but it is rarely fully explained. mod_rewrite is one way to make "pretty links", but it's complex and its syntax is very terse, hard to grok, and the ...
deceze's user avatar
  • 518k
98 votes
13 answers
225k views

Project Links do not work on Wamp Server

I am installing the Wamp Server on another computer to run a mid-sized database and UI. I have been successful in blocking IIS and routing the server to Localhost:8080. But whenever I try to access on ...
user3638431's user avatar
136 votes
18 answers
361k views

Remove .php extension with .htaccess

Yes, I've read the Apache manual and searched here. For some reason I simply cannot get this to work. The closest I've come is having it remove the extension, but it points back to the root directory. ...
Dirty Bird Design's user avatar
310 votes
19 answers
144k views

Tips for debugging .htaccess rewrite rules

Many posters have problems debugging their RewriteRule and RewriteCond statements within their .htaccess files. Most of these are using a shared hosting service and therefore don't have access to the ...
TerryE's user avatar
  • 10.8k
549 votes
15 answers
1.5m views

How to enable mod_rewrite for Apache 2.2

I've got fresh install of Apache 2.2 on my Vista machine, everything works fine, except mod rewrite. I've uncommented LoadModule rewrite_module modules/mod_rewrite.s but none of my rewrite rules ...
Jakub Arnold's user avatar
  • 86.7k
177 votes
7 answers
287k views

How can I make PHP display the error instead of giving me 500 Internal Server Error [duplicate]

This has never happened before. Usually it displays the error, but now it just gives me a 500 internal server error. Of course before, when it displayed the error, it was different servers. Now I'm on ...
Rob's user avatar
  • 8,060
7 votes
2 answers
5k views

Seo Friendly URL results in CSS IMG and JS not working

I want to make my URL as SEO Friendly URL. I tried editing .htaccess file by rewriting rule RewriteRule ^swift-details/([0-9]+)/([0-9a-zA-Z_-]+)$ swift-details.php?id=$1 [NC,L] RewriteRule ^swift-...
user avatar
332 votes
14 answers
638k views

htaccess redirect to https://www

I have the following htaccess code: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond !{HTTPS} off RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{...
bigben's user avatar
  • 3,381
420 votes
22 answers
802k views

How to set up file permissions for Laravel?

I'm using Apache Web Server that has the owner set to _www:_www. I never know what is the best practice with file permissions, for example when I create new Laravel 5 project. Laravel 5 requires /...
Robo Robok's user avatar
  • 22.2k
175 votes
22 answers
252k views

Why would $_FILES be empty when uploading files to PHP?

I have WampServer 2 installed on my Windows 7 computer. I'm using Apache 2.2.11 and PHP 5.2.11. When I attempt to upload any file from a form, it seems to upload, but in PHP, the $_FILES array is ...
elmonty's user avatar
  • 2,444
104 votes
12 answers
358k views

How do I add PHP code/file to HTML(.html) files?

I can't use PHP in my HTML pages. For example, index.html. I've tried using both: <? contents ?> and <?php contents ?> Neither of these work. My server offers PHP, and when I use a ...
Hoon's user avatar
  • 1,591
155 votes
30 answers
447k views

Apache shows PHP code instead of executing it [duplicate]

I have recently been trying to install PHP and Apache on my computer. After many hours, they're installed. I have modified the httpd.conf and php.ini files like everyone says. I then created a simple ...
imulsion's user avatar
  • 8,980
59 votes
19 answers
151k views

Using .htaccess to make all .html pages to run as .php files?

I need to run all of my .html files as .php files and I don't have time to change all of the links before our presentation tomorrow. Is there any way to "hack" this with my Apache server?
Michael Novello's user avatar

15 30 50 per page
1
2 3 4 5
523