Ravikumar Patel
Forum Replies Created
-
Forum: Plugins
In reply to: I got error message when I open my website without wwwU need to non-www url to redirect with www.
Add on htaccess.RewriteEngine On RewriteCond %{HTTP_HOST} ^laser-clinique.com [NC] RewriteRule ^(.*)$ http://www.laser-clinique.com/$1 [L,R=301]Forum: Fixing WordPress
In reply to: Site elements of Divi theme not working sense update@rechellefary : Please define error log which is arrived after update.
Possible to define url or image-screen hear.Forum: Fixing WordPress
In reply to: How To Disable The Autocomplete Page@marcoastriders : Go function.php Add this function
function kill_404_redirect_wpse_92103() { if (is_404()) { add_action('redirect_canonical','__return_false'); } } add_action('template_redirect','kill_404_redirect_wpse_92103',1);Forum: Fixing WordPress
In reply to: .htaccess : domain change switch to HTTPSRedirect to https and www
# Canonical https/www <IfModule mod_rewrite.c> RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(.*)$ [NC] RewriteRule (.*) https://www.%1/$1 [R=301,L] </IfModule>Redirect to https and non-www
# Canonical HTTPS/WWW <IfModule mod_rewrite.c> RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule (.*) https://example.com/$1 [L,R=301] </IfModule>Forum: Plugins
In reply to: [WP Maintenance] WP maintenance et htaccess# MAINTENANCE-PAGE REDIRECT <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC] RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] RewriteRule .* /maintenance.html [R=302,L] </IfModule> -------------------------- <Limit GET POST PUT> Order Deny,Allow Deny from all Allow from 123.456.789.000 Allow from 123.456.789.000 </Limit> ErrorDocument 403 /maintenance.html <Files maintenance.html> Order Allow,Deny Allow from all </Files>Forum: Fixing WordPress
In reply to: .htaccess help – 301 redirects not workingForum: Fixing WordPress
In reply to: .htaccess helptry with this step on image.
Settings -> Generalhttp://i2.wp.com/askwpgirl.com/wp-content/uploads/2010/04/General-Settings.jpg?resize=532%2C77
and need changes on your htaccess.
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /public/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /public/index.php [L] </IfModule> # END WordPressForum: Fixing WordPress
In reply to: Huge space between content and footerGo style.css line no 1022
replace this one:.page-wrap { clear: both; padding: 83px 0 100px !important; }I think u have created media Query based css for small screen.
Manage same css for large device.Forum: Fixing WordPress
In reply to: Help! Website just keeps loading!This one jQuery compatibility issue.
Now u can temporary fix using css..l-preloader { display: none; }Check this jquery on your file this one not work for u.
/** * UpSolution Widget: l-preloader */ !function($){ "use strict"; if ($('.l-preloader').length) { $('document').ready(function(){ setTimeout(function(){ $('.l-preloader').addClass('done'); }, 500); setTimeout(function(){ $('.l-preloader').addClass('hidden'); }, 1000); // 500 ms after 'done' class is added }); } }(jQuery);Forum: Fixing WordPress
In reply to: Admin bar is missing from homepage@davina, we can’t check for “admin bar” for homepage because of now we have just visitor. admin bar display after login.
Forum: Fixing WordPress
In reply to: Problem displaying custom post type at home page@imagenparaweb use this code
<?php function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( 'post_type', array( 'dd-product' ) ); $taxquery = array( array( 'taxonomy' => 'productcat', 'field' => 'term_id', 'terms' => array( 520 ), ) ); $query->set( 'tax_query', $taxquery ); return $query; } add_filter( 'pre_get_posts', 'my_get_posts' );Forum: Fixing WordPress
In reply to: upgraded to v4.5 and cant access website anymorewp check wp_config.php on your database connection details.
and now first apply this
hello, so all what should i do is to replace this in wp-db.php on line 1515:
$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );to this:
if ( WP_DEBUG ) { $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); } else { $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); }Please reply which php version u have used ?
Forum: Fixing WordPress
In reply to: How to redirect mobile users?user wp function
https://codex.wordpress.org/Function_Reference/wp_is_mobile<?php if ( wp_is_mobile() ) { //wp_redirect( $location, $status ); wp_redirect( home_url() ); exit; } ?>Forum: Fixing WordPress
In reply to: err_too_many_redirects .htaccessFirst of all post own question.