Solved

requet page

Posted on 2009-05-10
1
171 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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 …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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