# \[Solved\] Redirect Rules in Cloudflare

**URL:** <https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101>\
**Category:** RapidWeaver Classic\
**Created:** [January 16, 2018, 9:14pm UTC](https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101 "2018-01-16T21:14:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chet](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/chet/32/35396_2.png) [@chet](https://forums.realmacsoftware.com/u/chet)\
**Post date:** [January 16, 2018, 9:14pm UTC](https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101/1 "2018-01-16T21:14:58Z")

</div>

Hello!

I’ve switched blogging platforms in RW and I’d like to set-up a dynamic redirect rule in Cloudflare to handle all of the forwarding from links in Google SERPs and social media. I can’t seem to figure out which combination to use. Hoping you can help!

Old URL structure: [https://www.catholichusband.org/?post=blog-post-title-example](https://www.catholichusband.org/?post=blog-post-title-example)  
New URL structure: [https://www.catholichusband.org/index\_files/blog-post-title-example.php](https://www.catholichusband.org/index_files/blog-post-title-example.php)

Here’s my best guess (it’s an active rule, but doesn’t work).

 ![58 PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/f/f4462ec748f2b8d363520f242b0a66256a4c0046.png)

I’m open to using htaccess if I can take care of it with one command.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [January 16, 2018, 9:46pm UTC](https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101/2 "2018-01-16T21:46:11Z")

</div>

Not sure but it appears to be working for me, that’s if I understand what you stated above.  
I go to your site and select blog:  
[https://www.catholichusband.org/](https://www.catholichusband.org/)  
And if I select a blog post it goes to a file within the index\_files directory.  
I select a post titled “Big Finishes Don’t Require Big Starts” and get this URL  
[https://www.catholichusband.org/index\_files/big-finishes-dont-require-big-starts.php](https://www.catholichusband.org/index_files/big-finishes-dont-require-big-starts.php)

---

<div class="post-metadata">

**Author:** ![chet](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/chet/32/35396_2.png) [@chet](https://forums.realmacsoftware.com/u/chet)\
**Post date:** [January 16, 2018, 9:48pm UTC](https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101/3 "2018-01-16T21:48:42Z")

</div>

Hey Doug!

I have a bunch of [SERP’s in Google](https://www.google.com/search?ei=9nJeWujSAcSEsAXQvJaABg&q=catholic+husband+dear+benedict&oq=catholic+husband+dear+benedict&gs_l=psy-ab.3..33i160k1l2.40348.40348.0.41153.1.1.0.0.0.0.62.62.1.1.0....0...1c.2.64.psy-ab..0.1.62....0.U9mNbG9TK-Y) that I’m trying to correct. Everything on the site is working just fine, it’s those links on Google and potentially other social sites that I’m trying to correct.

I see that my original post was unclear, so it’s been edited to clarify the issue I’m trying to resolve.

---

<div class="post-metadata">

**Author:** ![chet](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/chet/32/35396_2.png) [@chet](https://forums.realmacsoftware.com/u/chet)\
**Post date:** [January 16, 2018, 10:06pm UTC](https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101/4 "2018-01-16T22:06:04Z")

</div>

Oh geez. I added .php on the end of my rewrite rule forwarding URL variable, and all is well.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [January 22, 2018, 10:06pm UTC](https://forums.realmacsoftware.com/t/solved-redirect-rules-in-cloudflare/18101/5 "2018-01-22T22:06:11Z")

</div>

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
