houstonwebsites
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Site is 403SickSquirrel,
This is a horrible problem. Just saying, my heart goes out to you. I am staying tuned to see how this is resolved. I am glad you posted this.
The .htaccess you have for a site running in the domain root looks like it should work from what I can see.
Forum: Fixing WordPress
In reply to: Making Home Slider Images Have PermalinksAl, please let me know if this is any better. Thanks.
<?php $query->rewind_posts(); while($query->have_posts()) : $query->the_post(); if(has_post_thumbnail()) : ?> <?php echo '<a href="' . the_permalink() . '">' . wp_get_attachment_image(get_post_thumbnail_id(), 'slider-large', false, array('class' => 'slide')) . '</a>' ?>
Forum: Fixing WordPress
In reply to: Making Home Slider Images Have Permalinkssdellow, what you put is correct. I was putting the_permalink() as the image source instead of the link in the <a tag. That was garbled on my part.
Thank you for putting up a correct response.
Forum: Fixing WordPress
In reply to: Site is 403If any file changes without you doing it, that is going to be the main problem.
If your site is not running in a subdirectory of your domain, then .htaccess needs to be adjusted from what you show above:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /subdirectory/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /subdirectory/index.php [L] </IfModule> # END WordPress
If your site runs in the domain root, you can run htaccess like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /***/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
On some servers, you have to add a ? mark after the index.php, or something very close to that, I cannot find the notes now.
When I googled “wordpress htaccess 403 error”, a lot of info comes back. I’d be going through that, but I my biggest concern would be finding out how the .htaccess file changed without you doing it. If you cannot control access to your files, your site is not going to be stable. I’d call this a code red, until you find out and resolve the cause of the change to that file.
Forum: Fixing WordPress
In reply to: Making Home Slider Images Have PermalinksIf you are constructing slider frames using wp post data, you are going to need to make the src for the image = the_permalink(). Something like:
<div class="slider"> <img src="<?php echo the_permalink();?>"> </div>
Does that help?
Forum: Fixing WordPress
In reply to: Keep the user on the home page in the event of a failed login?Thank you Gwyn. Just what I was looking for.