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
12:26 pm May 21, 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
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
AI visibility audit
Adsense / Personal Manager / Support
Hacker spoofing as GoogleBot
Page indexed but live url test gets 500 error
Link collaboration strategies
in case you missed it .
Microsoft, AS8075. Google, AS396982.
Bad actor claiming to be OpenAi
Home
Forums Index
Server Side
/
PHP Server Side Scripting
12:26 pm May 21, 2026