Plugin / Permalink Validator

Rolf Kristensen

Frequently Asked Questions (FAQ)

If having the ability to use htaccess or isapi_rewrite, then one should continue to use these to add missing trailing back-slash or www prefix. They are a lot faster at redirecting than Permalink Validator, as they are activated without starting the PHP script engine when the URL has incorrect format. Permalink Validator extends the validation so besides checking the format, then it also checks that the url is referring to something valid. The validation of the url doesn’t generate any extra overhead in database queries (unless the url requires redirection).
The plugin makes a redirect when the url used to reach the page doesn’t match the expected permalink url. Some times this leads to an endless loop, which Firefox shows as: The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. This can be caused by a conflict in the htaccess / isapi_rewrite redirection rules and the given permalink structure: If enforcing trailing back-slash and the permalink structure doesn’t include it. If this is not the case then you are very welcome to post a topic with your problem as feedback to this plugin. Please include your permalink-structure and WordPress version in your description of the problem.
The Permalink Validator will pretty much validate any URL you throw at it, but sometimes there are URL’s that should not be validated. Edit the plugin-code and replace this line: $excludes = array(); With an array of the URL’s to ignore: $excludes = array(“/forum”); Plugins that requires an URL excluded: Subscribe to Comments – Exclude “/?wp-subscription-manager” wp-forum – Exclude “/forum”
Add the following lines to your robots.txt: Disallow: */feed Disallow: */atom Disallow: */rss2 Disallow: */rss Disallow: */trackback Disallow: /*/feed Disallow: /*/atom Disallow: /*/rss2 Disallow: /*/rss Disallow: /*/trackback
WordPress supports by default Apache htaccess and its mod_rewrite rules. When using WordPress on IIS then these will not work and one is limited to this type of permalink: http://example.com/index.php/post/hello-world/ To remove the index.php, then one can either use the custom 404 redirects or isapi_rewrite. If using isapi_rewrite and changing from using index.php to not using index.php, then one can use the following httpd.ini (Assumes WordPress is installed in the root): [ISAPI_Rewrite] # Rules to ensure that normal content gets through RewriteRule /software-files/(.*) /software-files/$1 [L] RewriteRule /images/(.*) /images/$1 [L] RewriteRule /favicon.ico /favicon.ico [L] RewriteRule /robots.txt /robots.txt [L] # For file-based wordpress content (i.e. theme), admin, etc. RewriteRule /wp-(.*) /wp-$1 [L] # Rule to perform 301 redirect to ensure trailing back-slash on post and pages RewriteCond Host: (.*) RewriteRule ([^.?]+[^.?/]) http://$1$2/ [I,R] # Rule to perform 301 redirect (Remove index.php if specified) RewriteRule /index.php/(.*) /$1 [I,RP] # For normal wordpress content, via index.php RewriteRule ^/$ /index.php [L] RewriteRule /(.*) /index.php/$1 [L]
Permalink Validator cannot see the difference between this url: http://example.com/ And this url on IIS: http://example.com/index.php It can also not see the difference between this url: http://example.com/ And this url on IIS: http://example.com///// This is because REQUEST_URI is not supported properly on IIS, and this plugin can only simulate REQUEST_URI to a certain limit. Therefore it is impossible to know whether index.php or extra slashes was specified or not. The solution is to use a rewrite engine like ISAPI_rewrite or IIS mod-rewrite as they can provide a proper REQUEST_URI.
Microsoft IIS fails to reply with error code 404 in the HTTP header, when trying to access an non existing WordPress page. This usually happens when using a custom 404 page on IIS. It seems that when using PHP on IIS, then it is not possible to reply with a proper HTTP header. Apparently the only way to return a proper 404 on IIS is to use ASP.
Google tracking code adds a question-mark (?) option to the URL, which the Permalink Validator will strip because it is not part of the permalink URL. Instead of using a question-mark (?), then one could use a hash (#) value, and then modify the Google tracking code to extract the hash value instead of the question-mark value.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

0.7

First Released

31 Jan, 2014

Total Downloads

9,286

Wordpress Version

2.0.0 or higher

Tested up to:

2.6

Require PHP Version:

-

Tags

Contributors

This plugin has been closed.

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.