Solved

requet page

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

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 …
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

23 Experts available now in Live!

Get 1:1 Help Now