Closed ChrisMissal closed 13 years ago
I thought
RewriteRule ^/printerfriendly.aspx /$1 [R=301,L]
would work. it is not. still working on it
It's because you're doing ^/printerfriendly.aspx
, the URL's don't start with /printerfriendly.aspx
, they end with /printerfriendly.aspx
This may do it
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/printerfriendly.aspx.*$ $1 [L,R=301]
That did it. Thank you Chad.
Google many posts indexed with the /printerfriendly.aspx ending that Community Server used to produce. I don't think that WP has this by default, but we could keep some "link love" by redirecting a url like:
to: