Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
Apache Web Server
10:07 am Jun 18, 2026
This page requires javascript.
Forum Moderators:
phranque
Message Too Old, No Replies
htaccess works for .htm and .html when only .html is specified
apauto
Msg#:4238014
7:40 pm on Dec 2, 2010
(gmt 0)
Hi guys,
I have:
RewriteRule ^widgets/([^.]+)/([^.]+)/color/([^.]+).html?$ /scripts.php?a=$1&b=$2&c=$3 [L]
This works for when the url is:
/widgets/a/b/c.html
and also
/widgets/a/b/c.htm
Any idea how I can fix this?
thanks
g1smd
Msg#:4238016
7:49 pm on Dec 2, 2010
(gmt 0)
The question mark means the L is optional.
Remove the question mark from the rewrite.
Add a preceding redirect so that if .htm URLs are requested, user is redirected to the .html version.
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
Quite quiet in here, anyone know why?
Most people don't read anymore
AdSense Earnings and Observations - June 2026
2025 Link Building Trends and Insights
Big websites now dead (due to company decisions)
How has AI changed your work?
Home
Forums Index
Server Side
/
Apache Web Server
10:07 am Jun 18, 2026