Systreg
Staff member
- Joined
- Oct 13, 2008
- Posts
- 8,114
- Reaction score
- 666
[edit] Ignore all this topic, I've now deleted the business directory plugin that the topic is about.
Ok, the other day I installed a business directory WP plugin on my site, it worked fine, some local businesses started adding links, I just noticed today that when looking at any of the listings, it says 404 page does not exist, tried the submit listing and get the same.
So, I went to the site of the person who makes the plugin, and they have a section here called Q. Why the main site gives me the 404 or Not Found error message or I cannot see the “Submitt a link”?
http://www.forgani.com/tools/opendirectorylinks
It give directions to change htaccess file like this:
I'm not sure what I've done, I went to my webhost control panel and used the search function to find htaccess for my site, and I went to edit it, the htaccess file originally had this code in the file:
So, I took these 2 lines from the plugin authors site and pasted them in to make it look like this, I've highlighted what I added:
I saved that and my site loaded but had some images missing, I refreshed the page and then it was as if the site had no .css or style on it, so I edited the htaccess file again to make it like it was before I edited it, now the site doesn't work at all, it just gives a white page saying internal server error
What have I done and how do I fix it?
Ok, the other day I installed a business directory WP plugin on my site, it worked fine, some local businesses started adding links, I just noticed today that when looking at any of the listings, it says 404 page does not exist, tried the submit listing and get the same.
So, I went to the site of the person who makes the plugin, and they have a section here called Q. Why the main site gives me the 404 or Not Found error message or I cannot see the “Submitt a link”?
http://www.forgani.com/tools/opendirectorylinks
It give directions to change htaccess file like this:
This usually occurs only when using a custom permalink structure (like /%category%/%postname%/).
This is a .htaccess 404 error message and you should update your .htaccess file in the WP root directory.
Normally you should not edit the htaccess, the Permalink link will be detect by plugin automatically.
The htaccess is a way to add the category name to the url or display the post title in the blog url.
An example for htaccess code to redirect to odlinks
You need an .htaccess file. The file will be create/modify by wordpress via the Permalink/mod-rewrite option.
Please edit the .htaccess file in the root folder of your WordPress.
You use the default .htaccess file and modify the file as follow:
The redirect should look something like this
#RewriteRule . /index.php [L]
RewriteRule !^(classified|odlinks)/ /index.php [L]
RewriteRule odlinks/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=odlinks [QSA,L,R,NS]
I'm not sure what I've done, I went to my webhost control panel and used the search function to find htaccess for my site, and I went to edit it, the htaccess file originally had this code in the file:
# 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
So, I took these 2 lines from the plugin authors site and pasted them in to make it look like this, I've highlighted what I added:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule !^(classified|odlinks)/ /index.php [L]
RewriteRule odlinks/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=odlinks [QSA,L,R,NS]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I saved that and my site loaded but had some images missing, I refreshed the page and then it was as if the site had no .css or style on it, so I edited the htaccess file again to make it like it was before I edited it, now the site doesn't work at all, it just gives a white page saying internal server error
What have I done and how do I fix it?
Last edited: