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
8:37 am Jun 18, 2026
This page requires javascript.
Forum Moderators:
phranque
Message Too Old, No Replies
RewriteRule is redirecting
SamTeeeee
Msg#:4264754
5:21 pm on Feb 9, 2011
(gmt 0)
Hi guys, this RewriteRule is redirecting me to /cfd/page.php instead of keeping me on /cfd/page.html and Rewriting.
RewriteBase /cfd/
RewriteRule ^cfd/(.*)\.html$ /cfd/$1.php [NC,QSA]
Any ideas please?
Thanks
Sam
g1smd
Msg#:4264780
6:14 pm on Feb 9, 2011
(gmt 0)
This rule is not redirecting, it's a rewrite.
Ensure that any and all external redirects are listed
before
any rewrites.
If there is a redirect
after
an internal rewrite, the internal server path is exposed in the redirect.
The
[L]
flag is needed on every RewriteRule too.
SamTeeeee
Msg#:4265646
3:22 pm on Feb 11, 2011
(gmt 0)
Cool thanks for your help.
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
8:37 am Jun 18, 2026