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
/
PHP Server Side Scripting
8:17 am Apr 28, 2026
This page requires javascript.
Forum Moderators:
coopster
Message Too Old, No Replies
redirectin /%20
is this possible
nippi
Msg#:4263378
10:20 pm on Feb 6, 2011
(gmt 0)
occasionally, people link into my site with anchors I have not been able to succesfully redirect
eg
1. %20
2 [
mydomain
...]
the sites do not repsond to requests to fix the links.
is there anyway I can 301 these to home in .htaccess?
g1smd
Msg#:4263393
11:40 pm on Feb 6, 2011
(gmt 0)
Yes, and it is far simpler to fix these using a RewriteRule in your .htaccess file than to attempt to do so using PHP.
In order to fix them in PHP, the request has to resolve to an internal script file first, and with the %20 included, is unlikely to do so.
mromero
Msg#:4263397
11:46 pm on Feb 6, 2011
(gmt 0)
I have a problem where some sites link to us with:
http://www.example.com/%20%20%20
How can we fix this in htaccess
I've tried 301 but I may be missing something in the syntax. Our page is not PHP - static html
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
,
Mar
,
Feb
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
April 2026 Google Search Observations
Hello again, it's been a while
AdSense Earnings and Observations - April 2026
Do you get tired of others copying your content?
5 SEO Tips That Actually Worked for My Blog in 2026
I need some SEO help
iPhone Safari 26.4.1 errors: IPv4 & Host
2025 Link Building Trends and Insights
Does SEO matter any more?
SEO question
Home
Forums Index
Server Side
/
PHP Server Side Scripting
8:17 am Apr 28, 2026