Welcome to WebmasterWorld Guest from

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Pretty Permalinks

.htaccess, pretty, permalinks, blog

3:02 pm on Feb 27, 2013 (gmt 0)

New User

joined:Feb 27, 2013
posts: 8
votes: 0

I had an issue with my .htaccess file, and having wiped it, resolved that issue. Now I am faced with another issue which is that all my permalinks are headed by /blog/ . This is rather annoying as all my previous (and indexed) links are now 404s.

This is how my CURRENT access file looks like (at least the WordPress part of it).

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_URI} ^(.*)wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !^(.*)thedomain.com.*
RewriteCond %{HTTP_REFERER} !^http://jetpack\.wordpress\.com/jetpack-comment/ [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule ^(.*)$ - [F,L]

# END Better WP Security

# 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]
# END WordPress

This is at the end of the file, there is some stuff from a security plugin before that.

At this moment, In my Permanlinks settings I can only choose from the following:

Day and namehttp://thedomain.com/blog/2013/02/27/sample-post/
Month and namehttp://thedomain.com/blog/2013/02/sample-post/
Post namehttp://thedomain.com/blog/sample-post/
Custom Structurehttp://thedomain.com/blog

Where it used to be without "blog". What I want is something like this:

Custom Structurehttp://thedomain.com/%classification*%/%Sample-post%/ (*or whatever it was termed - I don't know the specific terminology).

That is to say a permalink structure like "site - my classifcation - my post". (Without "blog"!)

Any suggestions? Thanks, Moriarty

[edited by: lorax at 7:37 pm (utc) on Feb 27, 2013]
[edit reason] removed details [/edit]

9:33 am on May 7, 2013 (gmt 0)

New User

joined:May 6, 2013
votes: 0

I do not know if You were trying to change Your permalink structure in wordpress options? You can also look for plugin which will set them for u.
12:32 pm on May 27, 2013 (gmt 0)

New User

joined:May 6, 2013
votes: 0

Well You can change permalinks in wordpress options, no need for coding :)