Code Monkey home page Code Monkey logo

Comments (8)

clegginabox avatar clegginabox commented on May 20, 2024

Default Wordpress htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
</IfModule>

Default Wordpress Multisite htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
</IfModule>

from gravity-forms-iframe.

bradyvercher avatar bradyvercher commented on May 20, 2024

I'll have to do some testing on multisite to check that out. Did you network activate the plugin or just activate it on the site you're using it on?

from gravity-forms-iframe.

clegginabox avatar clegginabox commented on May 20, 2024

I tried both, same results.

from gravity-forms-iframe.

bradyvercher avatar bradyvercher commented on May 20, 2024

I just tried both myself and I'm not seeing this issue. Can you try installing the Rewrite Rules Inspector plugin and seeing if an entry with (gfembed.php)$ shows up?

from gravity-forms-iframe.

clegginabox avatar clegginabox commented on May 20, 2024

(gfembed.php)$ index.php?gfiframe=$matches[1] other

from gravity-forms-iframe.

bradyvercher avatar bradyvercher commented on May 20, 2024

It sounds like a server config issue or there's a problem with the rewrite rule (since it ends with a php extension, it might conflict with that second to last rule in the multisite .htaccess). Are you using a subdirectory or subdomain install?

Otherwise, everything seems to be set up correctly and the rewrite rule exists, so I'm not sure where the problem is at this point. If you're able to do any troubleshooting and find something out, let me know.

from gravity-forms-iframe.

clegginabox avatar clegginabox commented on May 20, 2024

Commenting out the second to last rule as you suggested seems to have fixed it, hopefully it doesn't cause any problems elsewhere.

Thanks for the help, rewrite rules are not my forte

edit - Using subdirectory multisite

from gravity-forms-iframe.

bradyvercher avatar bradyvercher commented on May 20, 2024

Interesting. Thanks for trying that out and letting me know it worked. I wouldn't recommend keeping that rule commented out since it could break other things. It sounds like I'll need to add a different rewrite rule that doesn't use the .php extension.

from gravity-forms-iframe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.