Their technical support did manage to uninstall the plugin and fix the .htaccess file (not sure what they did) and it’s back up with out this plugin, which makes a bit mad. I like it. I have this installed on sites with other hosts and have had no problem.
What makes GoDaddy different? They did use this as a good opportunity to upsell me to their new managed WordPress service – that’s not my decision to make – but that does not really solve my issue with this, though it may solve some other issues.
Anybody have similar issues with this on GoDaddy?
https://www.ads-software.com/plugins/better-wp-security/
]]>I am trying to deal with some duplicate content, and in particular my page is rendering on the url “/index”…. All that I can find is how to redirect “index.php” but I am having no duplicate content issues with “index.php”. Would someone be kind enough to help me out…
Thanks,
Stephen.
]]>Spec:
Installation: WP installed using Softaculous
Version 3.2.1, updated through WP’s internal Update function
Server: linux-based, hosting server using LiteSpeed
Control panel: cPanel 11.30.3 (build 5)
MySQL: ver. 5.0.91-community-cll
Recently I set about pointing the site’s URL directly to the WordPress installation – something I had successfully done on another site I manage, the user could land directly at https://sitename.com/
….only this time the process went awry, and I cannot see how.
As before, I did the transfers as instructed on the excellent Codex article https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
Everything went smoothly, until I tried to update the permalinks, when I got the message:
“You should update your .htaccess now.”
and, at the bottom, a code window, with the explanation:
“If your .htaccess file were writeable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.
I changed the .htaccess permissions to CMOD 766 and tried again, with the same result. So I (temporarily) changed them to CHMOD 777, tried again, but gain got the same result – which surprised me no end!
Q. 1) Any idea what the problem could be there? What CHMOD should I be using?
As a workaround, I copied the code into the .htaccess and carried on… but site lost a lot of the images and, when I tried to post and upload images, it could not find those either.
I ended up creating a new directory for the WP installation, moving and pointing everything to it, deleting the old one altogether from the server. On the whole, worked, except…
When I uploaded the images again form my computer, WP recreated the old WP directory name and structure, with just wp-content and new image uploads:
|-> OLDWPDIRNAME
|–> wp-content
|—-> uploads
|——-> year
|———-> month
|——-> thumbs-cache
Only image uploads appear to be affected, the new directory I created is till there and works fine, updates work fine, the Theme is perfectly linked up, posts and pages, menus and plugins all work fine I even tried reinstalling WP to see if it would reset the directory links to the new one.
I checked every file I could think of to find what generates a “create directory” that picks up the old directory name, but have not managed to identify the problem.
Q.2) Any ideas/suggestions of files I should look at, that could be pointing to the defunct installation directory?
Once again, thank you for your kind help.
Gea
_____________________________________________________________________
PS (as an aside)
Love the impeccable syntax of that message!
“If your .htaccess file WERE writable…”
instead of the nasty, horrible, wrong…
“If it was writeable”
FULL MARKS WP CODEX AUTHORS!!! EXCELLENT ENGLISH!!! MWAH! :o)
And, no, I am not a snob; English is not my native language but, as an immigrant to the UK I tried hard to learn it to the best of my ability. It is a beautiful language and it’s a shame to let it be mangled by lazy usage, so it’s lovely to see some people still make an effort, and I just wanted to give credit where it’s due, that’s all.
]]>However, I went into the dashboard and changed it from /omarblog to /blog, and also renamed the folder in the directory to blog.
Now, I cannot access the dashboard (boots me to index of the site, omarcoffee.com, and when I go to https://www.omarcoffee.com/blog/, I see the site with no CSS.
Anyone help me here? I originally had problems accessing the blog via URL, it kept kicking me to index, so I posted here and someone gave me a .htaccess file that corrected the problem. I don’t have much experience with .htaccess files so this could easily be the problem but I’m unsure.
The .htaccess that corrected it in the beginning is the following:
DirectoryIndex index.php index.html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If I remove the file, it will kick me to the index every time I try to access, www.omarcoffee.com/blog.
Extremely worried I ruined the blog and need to redo everything, if you have any ideas please help me out!
Thanks,
Mike.
Any ideas?
]]>This happens when I have not had Any activity in the webspace ie I have not uploaded anything new… the most recent was this morning ( website was working fine yesterday.
I am running 3.01 wp… I have no idea why this keeps happeing are there any steps I can Tka to avoid this recurrence.
When I rectify this and can get into my WP Admin I will investigate to see if there are any unauthorised users in Admin.
Can any one help or suggest a solution to this recurring problem?
www.tricitypsychology.com/blog
]]>I seem to have an .htaccess issue too. First off I can’t get an FTP program to work on this computer. I had FileZilla on my PC, but it went down some time ago and I am now on a laptop. So, instead I have been going through my cPanel which doesn’t allow me to actually see the .htaccess file. I can see the htaccess.txt file though. What I have been doing is saving a file with the code I want and then copying it as .htaccess . It is making the changes because if I put the following code in it and save as .htaccess the site loads (with no images)
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
#RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
#RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
However, if I add ANYTHING beyond that above code the site will not load at all.
The only other things in the htaccess.txt file are the ANTISPAM code, the WPSuperCache code, and the following code at the end.
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
If I try to add any of that it kills the site.
Any ideas out there?
What should be the code in the .htaccess file besides the above?
Any help would be greatly appreciated (I did search thru 15 pages here before asking this question). The search function doesn’t seem to work.
Here is my .htaccess file:
AddHandler application/x-httpd-php4 .php
DirectoryIndex home.php index.php index.html
# SAFETYNET REWRITE RULES
Options +SymlinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.premiumpowersports\.com [NC]
RewriteCond %{HTTP_HOST} !^www\.cheapfrags\.com [NC]
RewriteRule ^(.*)$ https://www.premiumpowersports.com/$1 [R=301,L]
RewriteRule ^(.*)-p-([0-9]*)-c-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ home.php?cat=$3&page=$2&sort=$4&sort_direction=$5 [L]
RewriteRule ^(.*)-p-([0-9]*)-c-([0-9]*).html$ home.php?cat=$3&page=$2 [L]
RewriteRule ^(.*)-c-([0-9]*).html$ home.php?cat=$2 [L]
RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3&sort=$4&sort_direction=$5 [L]
RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3 [L]
RewriteRule ^(.*)-mid-([0-9]*).html$ manufacturers.php?manufacturerid=$2 [L]
RewriteRule ^(.*)-p-([0-9]*).html$ product.php?productid=$2 [L]
RewriteRule ^(.*)-sp-([0-9]*).html$ pages.php?pageid=$2 [L]
RewriteRule ^(.*)-p-([0-9]*).html&xid=(.*)$ product.php?productid=$2&xid=$3 [L]
RewriteRule ^(.*)-c-([0-9]*).html&xid=(.*)$ home.php?cat=$2&xid=$3 [L]
RewriteRule ^(.*)-mid-([0-9]*).html&xid=(.*)$ manufacturers.php?manufacturerid=$2&xid=$3 [L]
RewriteRule ^(.*)-sp-([0-9]*).html&xid=(.*)$ pages.php?pageid=$2&xid=$3
</IfModule>
# END SAFETYNET
#block all smarty templates (no reason to have these exposed)
RedirectMatch gone ^/.*\.tpl$
# block the entire log directory
ReDirect gone /log
# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch gone ^.*\.(sql|log|conf)$
# block access to the 'Smarty-*' directory
RedirectMatch gone ^.*Smarty.*$
# block access to /upgrade
Redirect gone /upgrade
# block access to /skin1_original
Redirect gone /skin1_original
# block access to the /sql directory
Redirect gone /sql
# block access to the /shipping directory
Redirect gone /shipping
# block access to the pgp directories
Redirect gone /.pgp
Redirect gone /.pgp.def
]]>