purpleedge
Forum Replies Created
-
AuthorPosts
-
Found it, it was protection for suspicious query strings – apparently the search query string looks suspicious to ithemes security?
You can mark this as resolved.
I’ve found the cause, if not the solution 🙂
I installed a clone on a sub domain and it worked fine.
I has a look at the htaccess file and ithemes security had added some restrictions on the live site, after I removed those the search is working again.
This is what I removed, any suggestions as to what might be interfering with the search would be appreciated, I feel a bit naked without ithemes security!
# BEGIN iThemes Security # BEGIN Tweaks # Rules to block access to WordPress specific files <files .htaccess> Order allow,deny Deny from all </files> <files readme.html> Order allow,deny Deny from all </files> <files readme.txt> Order allow,deny Deny from all </files> <files install.php> Order allow,deny Deny from all </files> <files wp-config.php> Order allow,deny Deny from all </files> # Rules to disable directory browsing Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On # Rules to protect wp-includes RewriteRule ^wp-admin/includes/ - [F] RewriteRule !^wp-includes/ - [S=3] RewriteCond %{SCRIPT_FILENAME} !^(.*)wp-includes/ms-files.php RewriteRule ^wp-includes/[^/]+.php$ - [F] RewriteRule ^wp-includes/js/tinymce/langs/.+.php - [F] RewriteRule ^wp-includes/theme-compat/ - [F] # Rules to prevent php execution in uploads RewriteRule ^(.*)/uploads/(.*).php(.?) - [F] # Rules to block unneeded HTTP methods RewriteCond %{REQUEST_METHOD} ^(TRACE|DELETE|TRACK) [NC] RewriteRule ^(.*)$ - [F] # Rules to block suspicious URIs RewriteCond %{QUERY_STRING} ../ [NC,OR] RewriteCond %{QUERY_STRING} ^.*.(bash|git|hg|log|svn|swp|cvs) [NC,OR] RewriteCond %{QUERY_STRING} etc/passwd [NC,OR] RewriteCond %{QUERY_STRING} boot.ini [NC,OR] RewriteCond %{QUERY_STRING} ftp: [NC,OR] RewriteCond %{QUERY_STRING} http: [NC,OR] RewriteCond %{QUERY_STRING} https: [NC,OR] RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [NC,OR] RewriteCond %{QUERY_STRING} base64_encode.*(.*) [NC,OR] RewriteCond %{QUERY_STRING} ^.*([|]|(|)|<|>|ê|"|;|?|*|=$).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*("|'|<|>|\|{||).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(127.0).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(request|concat|insert|union|declare).* [NC] RewriteCond %{QUERY_STRING} !^loggedout=true RewriteCond %{QUERY_STRING} !^action=jetpack-sso RewriteCond %{QUERY_STRING} !^action=rp RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ RewriteCond %{HTTP_REFERER} !^http://maps.googleapis.com(.*)$ RewriteRule ^(.*)$ - [F] # Rules to block foreign characters in URLs RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F).* [NC] RewriteRule ^(.*)$ - [F] # Rules to help reduce spam RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} ^(.*)wp-comments-post.php* RewriteCond %{HTTP_REFERER} !^(.*)com.au.* RewriteCond %{HTTP_REFERER} !^http://jetpack.wordpress.com/jetpack-comment/ [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule ^(.*)$ - [F] </IfModule> # END Tweaks # END iThemes Security
Thanks Guust
OK, it’s working on localhost, but not at live site, so I guess something needs to be available for it to work? Any idea what I need to turn on?
The localhost install is a clone of the live site, so it isn’t a setting in wp or gd that has changed.
This reply has been marked as private.Thank you Stiofan!
Does GD support Express payment type, or any other?
Before and after images attached. Seems to resize OK in FF mobile view, haven’t tested on a real mobile yet.
Ok, if you’re not prepared to distinguish them I’ll try the nth technique and hope I can consistently know which one I am hiding. I don’t think hiding the contents of the divs will hide the borders?
Any problem doing something like this?
/* slider images --------------------------------------------------------------*/ #geodir_slider { box-shadow: none; } .geodir-viewport { padding-bottom: 10px; } .geodir_flexslider .geodir-slides img[itemprop="image"] { border: 1px solid #5E5E5E; border-radius: 5px; max-width: 100%; max-height: 480px !important; } #geodir_carousel { box-shadow: none; padding: 5px; }
The max-height is what makes the images bigger.
You want shortcodes, not widgets – there are tools that convert widgets to shortcodes – Brian on here is using one successfully – there are limitations to what you can do with shortcodes though, so don’t expect to be able to replicate the GD functionality everywhere.
You can vote for shortcodes here…
So this article is wrong?
http://www.kylejlarson.com/blog/2012/creating-retina-images-for-your-website/
Hi Stiofan, sorry tried to post it in blockquotes and pre, will try in code.
I was just trying to separate the formatting of the “label” from the url, if you keep the strong in there then everything is strong, if you leave it out then we can decide if one part is strong – like my image.
/* Change the way website link is displayed on detail page --------------------*/ function geodir_change_website_field_display_name($name,$website,$post_id){ return '<strong>' . $name . '</strong><span class="geodir_website_address">' . $website . '</span>'; } add_filter( 'geodir_custom_field_website_name', 'geodir_change_website_field_display_name', 10, 3 );
produces…
<a target="_blank" href="http://buy4baby.com.au"> <strong> Website </strong> <span class="geodir_website_address"> http://buy4baby.com.au </span> </a>
…a bit more flexibility. See image above.
Thanks Guust, I get a 404 from it?
And, I think the image is meant to exist?
Hi Brian,
I came across this other post where a url could be saved, but would not be reloaded later, I suspect that GD was updated now so that the full url is consistent with the page’s GD url location…
https://wpgeodirectory.com/support/topic/should-we-use-an-seo-plugin/page/2/#post-11872
https://wpgeodirectory.com/support/topic/should-we-use-an-seo-plugin/page/2/#post-12817
-
AuthorPosts