php - Form outside of wordpress gives wordpress 404 on submit -
I have a WordPress site, and there is a sub-directory on the server that is excluded from WordPress, this is the line To which I am using the .htaccess file to exclude that directory:
RewriteCond% {REQUEST_URI}! (App) [NC] I have a form inside that directory whenever a single URL is in the field, I get WordPress 404 when I submit it. If there is no URL in the field, then it normally submits how can I resolve this issue?
Edit:
Here's what I've tried:
- Adding a prefix for the form element name
- form using a random string of characters as the element name
- form value encoding base 64 submission
- add a subdirectory with a .htaccess file < Li> Reserve angle of the command
- With the relative and full URL, "Action" for both you and the other page. Adding Eshta.
Full text of wordpress .htaccess here:
# version and lieutenant; IfModule mod_rewrite.c & gt; RewriteBase / RewriteRule ^ index RewriteEngine on \ .php $ - [L] RewriteCond% {REQUEST_URI} (app) [NC] RewriteRule ^ other /(.*) / WP- include / $ 1 [QSA, L] RewriteRule ^ file / (. *) / Wp-content / uploads / $ 1 [QSA, L] Rewaritium ^ ext /(.*) / wp-content / plugins / $ 1 [QSA, L] revised rule ^ skin / main \ Css // index php? style_wrapper = 1 [QSA, L] RewriteRule ^ skin /(.*) / wp- content / themes / sirens / $ 1 [QSA, L] RewriteRule ^ ajax /wp-admin/admin-ajax.php [QSA, L] RewriteRule ^ WP-content / themes / siren / screenshot \ .png | Readme \ .html | License \ .txt | WP-content / debug \ .log | Wp-includes / $ / nothing_404_404 [QSA, L] RewriteCond% {REQUEST_FILENAME}! -f rewrite code% {REQUEST_FILENAME}! -D rewriteable /index.php [L] & lt; / IfModule & gt; # And WordPress & lt; Files 403.shtml & gt; Allow order, refuse & lt; / Files & gt; ## Caching ## Ended & lt; IfModule mod_expires.c & gt; ExpiresActive ExpiresByType image / "on JPG reach 1 year" ExpiresByType image / jpeg "reach 1 year" ExpiresByType image / gif "reach 1 year" ExpiresByType image / png "reach 1 year" ExpiresByType text / css "reached 1 month" ExpiresByType text / html "reached 1 month" ExpiresByType application / pdf reached "1 the month" ExpiresByType text / x- javascript "reached 1 month" ExpiresByType application / x-Shockwave flash "reached 1 month" ExpiresByType image / x-icon "reach 1 year" end Is "up to 1 month" & lt; / IfModule & gt; ## Caching ## Ended & lt; IfModule mod_gzip.c & gt; Mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file. (Html? | Txt | css | js | php | pl) Include $ mod_gzip_item_include handler ^ cgi- script $ mod_gzip_item_mime to ^ text includes /.* mod_gzip_item_mime ^ ^ / x- javascript. * Mod_gzip_item_exclude mime ^ image /.* mod_gzip_item_exclude rspheader ^ Content-Encoding: .. * Gzip * AddOutputFilterByType deflate text / plain AddOutputFilterByType deflate text / html AddOutputFilterByType DEFLATE text / xml AddOutputFilterByType deflate text / css AddOutputFilterByType deflate application / xml AddOutputFilterByType deflate application / xhtml + xml AddOutputFilterByType deflate application / rss + xml AddOutputFilterByType DEFLATE Application / JavaScript AddOutputFilterByType DEFLATE Application / X-Javascript & lt; / IfModule & gt; Here's the form:
& lt; Form enctype = "application / x-www-form-urlencoded" class = "form-horizontal" method = "post" & gt; & Lt; Textarea id = "command" name = "command" & gt; & Lt; / Textarea & gt; & Lt; Input type = "submit" value = "location order" class = "btn btn-blue" & gt; & Lt; / Form & gt; In every case, the result is the same - it works without the URL in the field, but WordPress 404 goes to the page when there is a URL in the field.
Example:
- The texture contains "foo" form is presented without any problems.
- "Text" is included in text. Form 404 goes into.
Which Htaccess file are you adding your rule? ? Default Wordpress .htaccess, or
within your sub-directory, will probably help you to create an .htaccess file within your sub-directory with the following:
& lt; IfModule mod_rewrite.c & gt; Stop typing again & lt; / IfModule & gt;
Comments
Post a Comment