Solved

extensionless url on apache - 404 error

Posted on 2008-10-17
1
338 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now