homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

Pretty Permalinks
.htaccess, pretty, permalinks, blog

Msg#: 4549461 posted 3:02 pm on Feb 27, 2013 (gmt 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]



Msg#: 4549461 posted 9:33 am on May 7, 2013 (gmt 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.


Msg#: 4549461 posted 12:32 pm on May 27, 2013 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved