Solved

extensionless url on apache - 404 error

Posted on 2008-10-17
1
346 Views
Last Modified: 2012-05-05
Hi, I was testing a website in my local server and I was able to transform url such as: /index.php or /logout.php into /index and /logout (without extension). Now I moved my site online and I have a 404 for those pages.

This is my .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^login$ login.php [L]
RewriteRule ^logout$ logout.php [L]
RewriteRule ^home$ index.php [L]
0
Comment
Question by:jimgordon
1 Comment
 
LVL 27

Accepted Solution

by:
caterham_www earned 500 total points
ID: 22744895
But you can use mod_rewrite on your server? Remove the "<IfModule mod_rewrite.c>" since it hides errors if the module isn't loaded.

Another approach are enabled multiViews:
Options +MultiViews

Open in new window

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use embargo Date/time in php 29 38
Blocking submission of a web-based form 6 20
Can't find PHP files on account that has WordPress 3 27
Curl & PHP Command Help 4 23
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question