Solved

requet page

Posted on 2009-05-10
1
170 Views
Last Modified: 2012-05-06
hello there,
this is working perfectly fine but when I have a dir called 'tutorials' and I
try to request site.com/tutorials/page1.html it doesnt work..
how can I make this script work for all sub-dirs too?
RewriteRule ^([^/\.]+).html?$ /$1.php [L]

Open in new window

0
Comment
Question by:XK8ER
1 Comment
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24350133
Try this:
RewriteRule ^([^.]+)\.html?$ /$1.php [L]

Open in new window

0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tomcat LDAP authentication issue 3 191
Problem with .htaccess file 4 71
Apache 2.2 on Windows 2008 32 83
REWRITE RULE - Forcing https to http for Non-SSL site using HTACCESS 9 149
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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 …

839 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