requet page

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

LVL 1
XK8ERAsked:
Who is Participating?
 
David S.Connect With a Mentor Commented:
Try this:
RewriteRule ^([^.]+)\.html?$ /$1.php [L]

Open in new window

0
All Courses

From novice to tech pro — start learning today.