how can i redirect my links
For Example http://example.com/my-goat-eats-grass/ -> http://example.com/example-text-my-goat-eats-grass/
but keeping in mind that this redirection should not affect
http://example.com/tags/abc/
or http://example.com/categories/abc/
or http://example.com/authors/abc/
yaa i am using wordpress
and have thousand of pages like http://example.com/my-goat-eats-grass/
Please help me...
You can create thousounds of lines:
RewriteRule ^my-goat-eats-grass$ http://www.example.com/example-text-my-goat-eats-grass/ [L,R=301]
Or try this, after discussion:
RewriteRule ^(?!example-text-)([^/]+)/?$ /example-text-$1 [L,R=301]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.