Space Cat, Prince Among Thieves

Batch RewriteRule Generator

Find this useful?Buy me a coffee!



I find myself often needing to set up a large number of 301 redirects from an excel file of old to new url’s. Until this point, writing these had been a fairly exhausting process as you need to be certain to escape every character that could be picked up by the regular expression engine, or risk unintended consequences. On top of that, writing these rewrites to catch GET parameters in any order is complex to say the least. While working through a large list of 301s for a very picky server where Redirect 301 style redirects were not an option, I began setting up RewriteRule's by hand and decided there had to be a better way. Voila! My 301 RewriteRule Builder was born.

Excel Usage Example

You can simply enter a list of tab or space delimited urls (copied from Excel works great) and it will spit out the generated RewriteRule’s for you. GET parameters on the old urls are broken up and built into multiple RewriteCond’s set up to work in any passed order.

I hope someone finds this useful. Any comments are welcome below, of feel free to fork me on github!

Please make sure you have RewriteEngine On somewhere near the top of your .htaccess, before you attempt any rewrites.

Need more help? The tool can only do so much, and sometimes you need human help. I offer .htaccess help as a paid service and have 10+ years of Apache experience. Send me a note on my contact page and we can discuss your options.

Fork my source on Github!

Comment by: Dan Shields on

Dan Shields GravatarI can't believe no one has commented. This thing is the greatest tool ever. I would have figured someone had created this but when searching not much was showing up and you just saved me hours of converting 6 hundred or so urls.

Thanks so much!!

Comment by: Chandra on

Chandra GravatarHey Buddy, I have no words to express.. This is a great tool and you saved my time a lot .. thank you soooooooo much. God this is a wonderful tool :-)

Comment by: Night Lion on


Comment by: Martin Emmert on

Thanks! You saved me a lot of trouble and pain!!

Comment by: Mike on

Mike GravatarThis is just wonderful. Saved me a bunch of mind-numbing data entry. Such a useful tool. THANK YOU!

Comment by: corey on

This tool is the sex

Comment by: eg on

Thanks! You're a life saver!

Comment by: Gareth on

Saved me a huge amount of time and confusion. Many thanks.

Comment by: Anton Evers on

Anton Evers GravatarNice, I'll be using this one more often. I'll fork it too. See if I can tweak the order of the rules so general rules come after specific ones.

Comment by: Anton Sombetzki on

Anton Sombetzki GravatarThanks, first tool I could find that actually works with get parameters! Really nice, bookmarked!

Comment by: Foxman on

Brilliant :) It actually works!!!!! thanks and well done!

Comment by: aseran on

aseran GravatarI agree with you all guys this tool is truely life saver...

Comment by: Anne-Mieke Bovelett on

Anne-Mieke Bovelett GravatarWhere's your PayPal donation button??? This is GREAT stuff!

Comment by: Marc Heatley on

Thanks for this amazing tool! It's a total lifesaver.

Comment by: Alex on

Alex GravatarReally you need a donate button. You don't understand how much this helped me. Thank you so much for making my life so much easier!

Comment by: danna on

danna GravatarThis is great... and over 2 years later even. Thanks so much!

Comment by: Duane on

Thanks so much for such an incredibly great tool!

Comment by: Sagan on

Sagan GravatarThis tool just made my life incredibly easy. We had to create 500 redirects for the relaunch of an ecommerce platform, and this made it incredibly easy. Thank you for making this tool!

Comment by: Eric on

Eric GravatarThe perfect tool I've been searching for 3 hours! Thanks a lot I bought you a beer ;-)

Comment by: Nathan Gaw on

Nathan Gaw GravatarA very useful tool - thanks for putting it together. I bought you a beer. cheers.

Comment by: Raymond on

VERY useful online tool! Thanks for this.

Comment by: Don on

Don GravatarThank you, for this tool. Confirmed. Working like a charm.

Comment by: Eamonn on

Eamonn GravatarGreat work, if only I had found this a a few years back it would have saved a few sleepless nights. Well done!

Comment by: Given on

Given GravatarI salute you. This is awesome :)

Comment by: Vickie on

Vickie GravatarMan, you totally rock! I was just about to give up. Enjoy the beer :D

Comment by: kalyan on

kalyan GravatarHelped me a lot . Good job guys

Comment by: charles on

charles Gravatarawesome tool. thank you so much!

Comment by: Olli on

Olli GravatarThis tool is absolutly awesome and error free. All the best :-)

Comment by: Shaun on

Shaun GravatarAwesome. Thanks. Was stocked when I came across this. Thanks!

Comment by: Koen on

Great tool! Thanks it helps me much

Comment by: David on

David GravatarOMG. Thank you. No kidding, I spent over 10 hours today and yesterday trying to decipher Rewrites for some very complicated URLs. This solved it immediately. This is truly an invaluable tool.

I love that it does bulk processing, but I'm way more impressed with the fact it can decipher irregular characters. It's exceptional!


Please contact me, and I'll send you a free graphic t-shirt from!

Comment by: Matt on

Matt GravatarYou are a CHAMPION for creating this. Thank you SO. MUCH. I will gladly buy you beer. Buy this man beer, people!

Comment by: mabin on

Awesome tool

Comment by: Andy on

Andy GravatarHi, great tool but if you have hundreds of redirected urls what do you do with the home page re-direct?
Does it go at the bottom of the file? top? and how does it work so the rest of the urls are not skipped please?
Cannot find any info for this when using a htaccess methodnad need to find a working method fast as website now transferred to brand new domain.

Comment by: Jesse G. Donat on

Jesse G. Donat Gravatar

The order actually shouldn't matter at all when using rewrites this creates as it strictly matches.

Entering the following for redirect

Returns the following.

RewriteCond %{HTTP_HOST} ^foo\.com$
RewriteRule ^$ [L,R=301]

The ^$ means [start][finish] and indicates that this only strictly matches empty so it won't bleed into other matches.

As such you will also want one for index.html/index.php/whatever the real url for your homepage is.

Comment by: David on

David GravatarAll your base are belong to us because this tool is the ish.

I've saved a lot of time! Thanks for the hard work.

Comment by: Hetal Shah on

Hetal Shah GravatarThanks a ton Donat Studios for this excellent tool of rewrite generator. I had been struggling for two days for getting my .htaccess codes right, but this tool solved my problem instantly. Thanks once again !!

Comment by: helen on

helen GravatarThank you, a very useful tool.

Comment by: Michael van Bevern on

Michael van Bevern GravatarTHANK YOU SO MUCH! You solved my day!

Comment by: Lance on

Lance GravatarThis tool is so cool!

Comment by: Luke on

Luke GravatarDude, this tool is so sweet. I'm glad to see you still maintain it. As thanks I bought you a beer last time and I highly encourage others to buy you one too.

Comment by: Philippe on

Philippe GravatarGreat !! Thanks a lot. The htaccess rules are perfectly applied. This 301 generator is the best that I had discovered... until now.

Comment by: Samantha on

Samantha GravatarThank you so much. I have had to do a large number of these on several occasions now. This has saved me sooooooooo much time. Great tool! Thanks again.

Comment by: saravanan on

saravanan GravatarI need to have this work for all of my pages. Please let me know how to do it.Below is my code that works for single page

RewriteCond %{QUERY_STRING} (^|&)where=Oakland%2C\+CA($|&)
RewriteCond %{QUERY_STRING} (^|&)keyword=Beauticians($|&)
RewriteRule ^results\.php$ /results.php/k/Beauticians/Oakland/CA? [L,R=301]

Comment by: jon on

jon Gravatarwell done man, thanks so much, there is nothing else like this out there!

Comment by: Helias on

Helias GravatarI can make it work . I put the generated code into .access and in vhosts.conf file under but server doesnt seem to care. any ideas? p.s I restarted apache services too and in cong file mod_rewrite is enabled and uncommented . apache v 2.2

Comment by: Helias on

Helias GravatarOk the generated code works great, my problem was that i had to add parameters for allowing overrides in vhosts.conf for my vserver. Great tool !!!

Comment by: kamal on

kamal Gravatarlove your tool, it is useable in real sense.

Comment by: Ashok Maharjan on

Thanks, this is an awesome tool. Really save my day. :)

Comment by: Ivan on

Ivan GravatarHi, i´m trying to redirect two kinds of urls but any of them works.


Number 2 works with redirect 301 /anuncios/buscar/1/54

Does anyone can help me?

Thanks for help :)

Comment by: Jesse G. Donat on

Jesse G. Donat GravatarHave you tried adding http://? The links will be processed a little differently when it realizes these are full url's and not relative paths.

Comment by: Ivan on

Ivan GravatarYeah i tried, all the urls have the http protocol, but i can´t copy the exact url cause the comments doesn´t accept urls.

Comment by: Simone on

Simone GravatarI love this ... thank you

Comment by: Jaime on

Jaime GravatarHi Jesse, thanks for this great tool!!

Do you know if it´s possible to make some kind of redirection specifying not only the path but also the domain of the old urls?

I need it because I am moving from a Joomla multi-domain website to a Wordpress multi-domain website and I have some identical paths in the old website like these:

So a simple redirect like below always send me to the .com (even in the french scenario) which is the main domain in the multi-domain hosting:

Redirect 301 /news.html
Redirect 301 /news.html

At this moment the old site is at the ftp root and the new one is in a production subfolder but I have to delete the oldsite and move the new one to the root.. I would need to have the htaccess managing the redirections of all the pages from the oldsite to the new one. I have no problems with the old urls with different paths but, what can I do with the urls with the same path?

I only have one htaccess, since both domains are mangaged from a single CMS installation. (Old joomla site managed the domains with Joomfish plugin and the new wp site manage the domains with WPML).

Thank you!!

Comment by: David on

David GravatarUtterly brilliant. Thanks! Saved me a lot of time doing it by hand.

Comment by: Tom on

GREAT!!! Thank you!

Comment by: Juliette on

This is awesome! Thanks for this.

Comment by: Colin on

This tool is the dogs! thanks for creating :)

Comment by: Greg on

Greg GravatarThis is so great! Thanks so much! You just saved me a bazillion hours of manual coding!

Comment by: Curtis on

Curtis GravatarBrilliant! Hats off to you, sir!

Comment by: Alex on

Alex GravatarThank you very much!!!

Comment by: Guus on

Awesome! Thanks a lot for this wonderful tool!

Comment by: Lorri on

Lorri Gravatarlifesaver! was using the cpanel redirect which broke old cs-cart shopping cart urls (index.php?target=categories&category_id=171) - went through a few rules & tried, then decided there has got to be a generator - went through a few generators - yours is the ONLY one that worked!

Comment by: Scott on

Scott GravatarI can't even begin to explain how much time you just saved me. THANK YOU!!

Comment by: Alex on

Alex GravatarBeautiful tool! Literally shaves hours off large redirect jobs.

Comment by: Jelmer on

Thanks for this !!! Bookmarked for life :)

Comment by: Dave Reeder on

Dave Reeder GravatarThanks, great tool!
This is the only tool that came up with a working redirect for some 404s I had.

Comment by: Evert on

Evert GravatarCool, amazing tool.
I love those simplicity tools that are doing what there are designed for.

Comment by: David on

David GravatarReally good job. Works like a charm.

Comment by: Umal on

Umal GravatarThis is a great tool. Idea is so awesome. Works like charm. Do you have something which can be used to read the existing redirects conf file and update the rewrite rules already present.

Comment by: Kevin on

Kevin GravatarAMAZING! Thank you so much!

Comment by: Hans Wassink on

Thanks Jesse! You are a true G. :) Lifesaver...

Comment by: kikos on

kikos GravatarI have a form with a google map lieke that
and i want ..The rewrite is working but the form doesent show anything ..and a field ist already selected with a value ...any ideas ?

Comment by: Russ on

Russ GravatarGreat tool! Thanks. Quick question. I have thousands of old forum links, like this: They all follow the same pattern, to a point. All of them have and then everything after the equals sign changes. Is there a way to write line in the htaccess file that basically says "anything that has the pattern of should 301 redirect to" ?

Comment by: Roger F. on

Roger F. GravatarGreat tool and real time saver! Was worth for a donation...

Comment by: zonko on

awesome - thanks for this lifesaver

Comment by: bobyfromuk on

bobyfromuk GravatarBest generator of all time! All he is doing!

Comment by: novasta on

novasta Gravatarvery usefull, thank you.

Comment by: Dan Judge on

Great tool, thanks for this.

Comment by: Joe on

Joe GravatarThis is simply amazing. I have been running into query string 301's a lot lately and this is the first usable tool, and arguably the best.

How could one modify it slightly to do the following?

I would want to remove the http host condition as I set the first redirect to push the www to non www version of the site. That condition is already met when I get to my 301's so I don't include it anymore on the individual ones.

Second, how can the output be set the RewriteRule starts with ^(.*)$ instead of the previous html page? in many cases any html page can generate the url so this accounts for all of them?

Again, simply amazing... even without my anal retentive tweaks.

Comment by: Muyassir on

Muyassir GravatarThank you!
It really helped and saved time.

Comment by: James on

James GravatarTHANK YOU. You are awesome!

Comment by: Paul on

Paul GravatarSimply wonderful! You took a mind-numbing task and turned it into a quick and painless process. Thank you!

Comment by: Mohsin Khan on

Mohsin Khan GravatarKilling tool Dudes. Totally flat. Rewrite 5,000 URL's in couple of seconds.... Awesome. Thank-You.

Comment by: Ashley on

Ashley GravatarFantastic! "It just works!" And to anticipate I'd be using Excel for input was all the better. I used it, tested it, then looked for the donation link to contribute. THANK YOU!

Comment by: Marshall on

Marshall GravatarOh. My. Gawd.

This is so incredibly awesome that it goes right past being incredibly awesome, goes all the way around, and comes back to being incredibly awesome.

And you. You're equally incredibly awesome for making it.


Comment by: Dmitry on

Excellent work. You are cool guy. Thanks for this tool :)

Comment by: Sherissa on

Sherissa GravatarAwesome tool! thank you.

Comment by: dutch guy on

dutch guy GravatarYessss, this is the supa dupa UBERtool when it comes to creating 301 batchfiles!
Great one, cheers!

Comment by: R34nimated on

Quality tool, saved me about an hour today. Thanks a bunch.

Comment by: David @ eltallerdelbit on

David @ eltallerdelbit GravatarHey! really useful tool!
Like to use it to make my redirections and rewrites ;-)


Comment by: Lamari Abderrahim on

Lamari Abderrahim GravatarGreat work, thank you so much.

Comment by: cataman on

Good Job! thanks bro...

Comment by: Alonzo on

Alonzo GravatarPerfect! I was having a headache, but this solved it! Thanks!

Comment by: andre on

andre GravatarPerfect, thank you for this tool !

Comment by: Amy on

Amy GravatarLet me add a "me, too" for this amazing tool--200+ redirects accomplished in 30 seconds. This is the best.

Comment by: Mariel on

Mariel GravatarThis tool can be used with cms word press friendly url.?
If I can enter a friendly url and it create the correct 301 redirect.?

Comment by: Shervin on

Shervin GravatarGreat tool man, You deserve donation for your great work :)

Comment by: damian on

damian GravatarIt's good. I'd recommend adding some options, such as with/without www and with/without closing "/" at the end of a link. Of course, user would have to be more aware of what they're pasting.

Comment by: Angela Tucker on

Angela Tucker GravatarWow!! Thanks so much on this great time saving tool!! Much appreciated!!

Comment by: Adrian on

Adrian GravatarThank you dearly! I tried a bunch of other generators but none were as good and accurate as this. Thanks a lot.

Comment by: Atur on

Atur GravatarTHANK YOU !!!!!!!!!!!

Comment by: cxvxcvxcv on


Comment by: farzad khaledi on

farzad khaledi GravatarThank you for your great tools,it's work very good :)

Comment by: Alex on

Alex GravatarHi! I generate

# 301 --- /shop/dekorativnye-plenki/category/32-karbon?route=product/category&path=25_32 => /dekorativnye-plenki/karbon
RewriteCond %{QUERY_STRING} (^|&)route=product/category($|&)
RewriteCond %{QUERY_STRING} (^|&)path=25_32($|&)
RewriteRule ^shop/dekorativnye-plenki/category/32-karbon$ /dekorativnye-plenki/karbon? [L,R=301]

But as a result my server redirect me non existed page


What is wrong?

Comment by: Voogarix Beethon on

Voogarix Beethon GravatarThank you very much dude.

Comment by: Sumesh on

Sumesh GravatarDo we have any script which does the reverse.

.htaccess file with 1000s lines of redirects, need to convert these into a table data

Comment by: Tim on

Tim GravatarThe rewrites didn't work for me, but the 301s did.

Comment by: karpel on

karpel GravatarExample:	/test/
return not correct.

Comment by: Jesse G Donat on

Jesse G Donat GravatarIt’s doing exactly what you told it to, which computers are one to do. I believe what you meant was:
Update: As this is a common source of error for people I've updated it to better handle FULL→Relative URIs.

Comment by: Naquan on

Naquan GravatarIt WORKS!!!! Thank you!

Comment by: Alex on

Alex GravatarAmazing tool - love the rewrites - was able to use it for special characters, such as query strings, which you can't do with redirectmatch 301


Comment by: Marco on

All you deserve is love. Thanks mate.

Comment by: Ben on

Ben GravatarAwesome tool - thank you for this it's saved tons of time

Comment by: Matt on

Matt GravatarJust the best there is!!

Comment by: Justin on

Justin GravatarHello,

Will this work for http > https ?

example... to ?

Comment by: César on

Thanks a lot!

Comment by: Manish on

Manish GravatarThis fails if I have a space or a "%20" in my old url. Any ideas?

Comment by: Manish on

Manish GravatarIf you have a space in the old URL, replace it with "\ " in the htaccess file.

EX: directory/\ directory/

Comment by: Julian on

Julian GravatarThis tool makes me cry happy.

Comment by: Reno on

Reno GravatarHello thanks for this great tool! Was wondering if it can be used for Nginx server too?

Comment by: Christian on

Christian Gravatar%^&*ing great tool > 400 redirects within a wink!

Let the comments on to make debug easier later!


Comment by: Brian on

Brian GravatarMany thanks for making this great tool available.

Much appreciated.


Comment by: Alpakka on

Alpakka GravatarReno: this can be used for nginx configurations, if u combine this with a .htaccess -> nginx converter, such as

You need basic understanding on nginx blocks (to avoid duplicates etc with your existing configurations), but I quess you have that if ur working with nginx.

Just did around 100 Rewrites combining these 2 tools. Amazing.

Comment by: Jorge on

Jorge GravatarHello,

I'm trying to get rewrite but don't work for me. Can you help me. Now I have 6000 Redirec 301 and I would like to convert into rewriterules.

Comment by: Alex on

Alex GravatarI donated again. I've used this tool many times. I can't thank you enough for this.

Comment by: itzik glam on

thank you

Comment by: Imran on

Imran GravatarHi,

I'm about to use this to redirect 9000 .asp pages to static HTML links which are all Magento pho.

Will this work with asp pages as the old page:



Comment by: Hamish Lowry-Martin on

Just sent ya a beer, thanks for the tool

Comment by: Dmitriy on

thanks for the tool

Comment by: Andrew Lee on

You're awesome

Comment by: Lesscro on

Lesscro Gravatarmade a small donation because u help me everyday in my work... Really a piece of work when needed !!!

Comment by: Patrick Büttgen on

Patrick Büttgen GravatarNice Tool, thank you!

Comment by: Pro Bg on

Great tool.

Comment by: Bessonweb on

Very helpful ! Thanks for the tool :-)

Comment by: Bob on

Bob GravatarYears after still rocks! Thank you!

Comment by: Jessica on

Jessica GravatarJust saved the night. I can go to bed now. Thank you!

Comment by: Looke on

Looke GravatarGod this is awesome! good job!

Comment by: hieu on

hieu GravatarHi, sorry for bother you. I dont know how to use it

Comment by: Some dude on

Some dude GravatarHow do I force lowercase on new URL? For example, OLD URL uses a mix of upper and lower case characters, but only want lowercase. Can you maybe add checkbox to convert case or share how to change autodirect both uper and lower mix to just lower?

Comment by: Jesse G. Donat on

Jesse G. Donat GravatarPresuming you're wanting to convert mix of any casing to lower case, and not a specific mixed case set, you're going to more htaccess logic than this is built to generate - using regex flags and rewritecond's.

It's out of scope of what this is meant for.

If you were interested, I offer htaccess help as a paid service. You can contact me via my contact page and we can discuss options.

Comment by: Daniel Dewhurst on

Daniel Dewhurst GravatarStill the best htaccess redirect generator.

Comment by: Mike on

Mike Gravatar2018 and still works like a charm!

Comment by: Jef on

Jef Gravatarexcellent work!
this is the only htaccess generator worked on my case!

Comment by: Erickson Bolivar on

Erickson Bolivar GravatarOMG,You are the best, i love you

Comment by: Sasha on

Sasha GravatarRespect from Russia! Very usefull script ;)

Comment by: Dave R on

Dave R GravatarThis tool is awesome! This is the only tool that solved my redirect problem.

Comment by: viktor on

viktor GravatarAdd a special character escaping in the GET parameter, some web servers cannot do without IT
RewriteCond %{QUERY_STRING} (^|&)id\=x($|&)
RewriteRule ^page\.php$ /page.php\?fid=x [L,R=301]
?fid=x -> \?fid=x

Comment by: Jesse G. Donat on

Jesse G. Donat GravatarIn my experience this is always something misconfigured on your server. It should not be necessary to escape the ?.

Comment by: Phil on

Phil GravatarHey

its possible todo this?

https://subdomain.domain.tld => https://subdomain.domain.tld/subdomainfolder?

Thank u

Comment by: Julien Gray on

Julien Gray GravatarDude, you are a legend. Saved me hours. Bought you a beer!

Comment by: Bruno on

Bruno GravatarA real help! Thanks!

Comment by: Luís Brito on

Luís Brito GravatarA great tool! Thanks mate!

Comment by: Clay Ravin on

Clay Ravin GravatarThis tool is great, thanks making it available!

Comment by: Clay Ravin on

Clay Ravin GravatarOr even thanks FOR making it available!

Comment by: Igor on

Igor GravatarСупер инструмент! Очень помог. Большое спасибо автору от России!!!

Comment by: Dimitri on

Dimitri GravatarGreat tool!! small issue:
when redirecting to the same url than this line should be skippet, this should not be possible:

# 301 --- =>
RewriteRule ^contact$ /contact? [L,R=301]

We get a lot of list with somtimes redirects that do no need redirecting. than this check would be good.

Comment by: Michel Remacle on

Michel Remacle GravatarThanks mate!

Comment by: Tom on

Tom GravatarGood work! Only problem is that there's no option to decode URLs, sometimes it's needed. E.g. I copied these old and new URLs from browser address bar and pasted it in your tool. I got this:

# 301 --- a.php => b.php?filter%5B%5D=somevalue
RewriteRule ^a\.php$ /b.php?filter%5B%5D=somevalue [L,R=301]

The problem is, %5 doesn't make it to the final URL, when Apache rewrites it so this redirect is unusable. It's probably because '%' is a special character, I'm not sure. Flags B and NE don't help. Only thing that helped me was to decode that URL so I got this: b.php?filter[]=somevalue

Btw I created a similar tool :)

Comment by: Kevin on

Kevin GravatarThank you! Worked great! I needed to do some search and replace afterward. Maybe it would be very easy for you to copy your existing code, paste it, and make another that provides the following result:

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^colorado\-renters\-rights\-law\.html$ "https\:\/\/domain\.com\/colorado\-renters\-rights\-law\/" [R=301,L]

Thanks again! What a great tool!

Comment by: Ignacio Durán on

Ignacio Durán Gravataresta aplicación es INCREIBLE!!! GRACIAS!

Comment by: Remo on

Remo GravatarGreat tool! A handy addition in my opinion would be an option to make trailing slashes in the match optional (RewriteRule ^request_uri?/$), besides that it just works perfectly!

Comment by: Sreenivas Reddy on

Sreenivas Reddy GravatarGreat redirection tool... It is working perfectly.


Thank you

Comment by: Al on

Al GravatarThank you for providing such a great tool. How can we handle name attribute, #abc below, at the end of a query in a link? It seems they are ignored in this tool.
text/faq.html?faq=20#abc	helpdesk/kb.php

# 301 --- text/faq.html?faq=20#Ben => helpdesk/kb.php
RewriteCond %{QUERY_STRING} (^|&)faq\=20($|&)
RewriteRule ^text/faq\.html$ /helpdesk/kb.php? [L,R=301]
I tried the following and it did not work. RewriteCond %{QUERY_STRING} (^|&)faq\=20\#Ben($|&) Any help would be greatly appreciated.

Comment by: Jesse G Donat on

Jesse G Donat GravatarThe "URL fragment" - the part after the # - is not communicated to the web server and thus cannot be used as something to base redirection on.

Comment by: STEPHANE on

STEPHANE Gravatarwow .. thanks a lot, very useful!!

Comment by: Steve on

Steve GravatarThis is just brilliant - thanks so much!

Comment by: Wannes on

Wannes GravatarWhat a lovely tool!

Comment by: Max on

Max GravatarThank you so much!
This is the best tool! I found exactly what I was looking for

Comment by: MyGoodJob on

MyGoodJob GravatarСпасибо тебе, дружище!

Comment by: Michael Rock on

Michael Rock GravatarWhen setting up a redirect through cPanel and it is a WordPress site it forces it to the bottom of the .htaccess files then does not work. By using your tool and manually adding it to the top of the .htaccess file it worked beautifully! Thank you! It took a while of searching to come across a tool where you can input multiple 301 redirects.

Comment by: Mike Lopez on

Mike Lopez GravatarI have a website and i want to redirect all the post there in 1 page. Is that possible?

Comment by: s w on

s w GravatarAwesome tool! i HAVE JUST USED IT WITH NO FAIL!

Comment by: Michael on

Michael GravatarYou're a lifesaver. Great tool, keep it up!

Comment by: Jason Schaeffer on

Jason Schaeffer GravatarTwo-hundred-fifty 301s verified you are a great human. Thank you for this amazing tool!!!

Comment by: viktor on

viktor Gravatar<div class="Comment">Add a special character escaping in the GET parameter, some web servers cannot do without IT
RewriteCond %{QUERY_STRING} (^|&)id\=x($|&)
RewriteRule ^page\.php$ /page.php\?fid=x [L,R=301]
?fid=x -> \?fid=x

<code>?</code> - it is necessary to screen since it is a special character, this is certainly not superfluous.
<code>=</code> you are screening although here it never leads to problems, the special symbol is not.

<code>?</code> on some servers you really have to screen, otherwise the redirect does not work.

According to the current description, this is a special character.

Comment by: kumar on

kumar Gravatarhow to redirect all .php to / in .htaccess

example to

Comment by: Ignacio on

Ignacio Gravatarplease, put some banners in your web and I will click them all!!! love your page.

Comment by: Victor Ekpo on

Victor Ekpo GravatarTHE BEST... you the you the best

Comment by: Alex on

Alex GravatarСайт на 20 минут к хуям отлетел, нахуй такую помощь друг))

Comment by: shambler81 on

shambler81 Gravatarplease add
this will not affect the logic in any way, but it will be convenient to count the groups

Comment by: Jesse G Donat on

Jesse G Donat GravatarThanks for the suggestion - it was a great idea! I always end up doing it myself when writing custom rules, might as well do it off the bat. I've implemented it!

Comment by: Angelo on

Angelo GravatarEverybody thinks it's a great tool. But I think there's something wrong with it. You write in the description of the tool: "I hope someone finds this useful". That phrase is obsolete, man. Of course your tool is awesome.

You should write instead: "Check this goddamn awesome tool of mine, bro. Any comments are welcome below, ..."

Comment by: Alan on

Alan GravatarSimple but effective. Thanks for the tool.

Comment by: Marek on

Marek GravatarYou're the best! :) Thanks!

Comment by: leandev on

leandev GravatarAwesome, it's 2020 and im still using this :)
Definetelly saved me alot of time

Comment by: Tinny on

Tinny GravatarThank you!

Email address will never be publicly visible.

See my Tweet about comment formatting.