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
12:27 am May 2, 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
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
April 2026 Google Search Observations
AdSense Earnings and Observations - April 2026
what do they want?
Hello again, it's been a while
I need some SEO help
SEO question
Do you get tired of others copying your content?
5 SEO Tips That Actually Worked for My Blog in 2026
Home
Forums Index
Server Side
/
Apache Web Server
12:27 am May 2, 2026