Mobile app version of vmapp.org
Login or Join
Angie530

: How to make this old WordPress plugin work? Some time back we found this very old, and no longer supported, plugin which helped us define our URL exactly the way we wanted it - see more

@Angie530

Posted in: #Plugin #UrlSlug #Wordpress

Some time back we found this very old, and no longer supported, plugin which helped us define our URL exactly the way we wanted it - see more on the issue from this previous post. Our Knowledge Base is hosted on WordPress, but our site is not, so the KB theme kept wanting to add in extra slugs to the URL. Unfortunately it was the only one we could find that actually did the job.

The plugin worked great... until we wanted to add a new article.
I get this error message:


Remove Slug Custom post type error!
.htaccess is not writable, please add following lines to complete your installation:

RewriteRule ^forumsforum/(.+)$ / [R=301,L]

RewriteRule ^forumstopic/(.+)$ / [R=301,L]

RewriteRule ^forumsreply/(.+)$ / [R=301,L]

RewriteRule ^articles/(.+)$ / [R=301,L]


If I ignore it and publish the article, the slug is actually correct, but if you visit the post it throws a 404 error.

How do I update the plugin so that I can continue adding new articles? I am not sure how/where to use the information in the error message.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angie530

1 Comments

Sorted by latest first Latest Oldest Best

 

@Welton855

.htaccess contains the rules that tell your server how to resolve the human readable urls so that they display the correct entry (internally wordpress still uses urls with query parameters, the rewrite mechanism hides them from a users view).

Your Plugin want's to add new rules to the htaccess file, however it lacks necessary write permissions on the file and can't do so automatically. So it asks you to add the rules. Without the rules the Urls cannot be resolved properly and thus they fail and result in a 404 error.

Start your FTP programm, check that it has an "show hidden file" option and that this is enabled (files that start with a dot, as .htaccess does, are not usually visible in Unix file systems via ftp), open the htaccess file and add the lines and then re-upload to the server). If this does not work you need to see if you can change file permissions (note the original permissions, change everything to 777, add rules to file and change back to the original permissions). If you can't change file permissions you need to contact your server administrator.

If this is the only problem with your plugin this should do the trick.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme