Solved

extensionless url on apache - 404 error

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php call to a non-object 3 31
Php pie charts 3 26
form button worked now it doesnt anymore 9 39
MySQL Grouping 2 19
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

914 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

14 Experts available now in Live!

Get 1:1 Help Now