How can i make a 301 or 302 redirect if the specific string: "one-piece" show up in the url (ie: http://www.domain.com/one-piece-episode-3/ this will redirect to the page designated. please help .
Try this: RewriteRule (.*)one-piece(.*) http: //www.somedomain.com/ [L,R=301] note that i separated the http:// from the domain bcz i'm a new user and i can't post links
I'm quite new to apache, php and the mod_rewrite, I understood that you use the start of line character (^) if you want to address a matching string from the begining of the line, for example if you wanted all the strings that just begins with one-piece : ^one-piece(.*) or ends with one piece (.*)one-piece$ anyway, glad it worked, I'm just pushing towards posting 10 messages so I can add my signature (while trying to help others on the way)
yeah actually u need ^ at the start and $ at the end in every case so its supposed to be ^(.*)one-piece(.*)$ it's like <?php and ?>