Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Remove /category/ in permalinks (http://forum.bytesforall.com/showthread.php?t=18489)

theadventurebite Sep 27, 2012 09:25 AM

Remove /category/ in permalinks
 
Hey all,

I'm trying to find a way to remove the /category in the permalinks setup.

The Pioneer Woman's site is setup like this so I know it can be done but not sure how.

Basically it should look like a regular page does:

theadventurebite.com/food

instead of

theadventurebite.com/category/food

Ideas?

Thanks!

Dani

juggledad Sep 27, 2012 09:45 AM

well what do you have your permalinks set to? (dashboard->settings->permalinks)

theadventurebite Sep 27, 2012 10:07 AM

Custom structure : /%postname%/

All others blank.

theadventurebite Sep 27, 2012 10:09 AM

Meh. I just realized all the things that are going to break if I do this.

Not worth the headache. Would be interesting to know how to do but I'll save it for a future site.

theadventurebite Sep 27, 2012 10:24 AM

I would like to redirect the base names though so that if someone navigates to

theadventurebite.com/food

they will get kicked over to

theadventurebite.com/category/food

I've got the .htacess file and this is the contents:

Code:

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# 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

I'm wondering where I would put the info to do the redirect. I know this is a super picky file so I really REALLY don't want to break it.

juggledad Sep 27, 2012 10:31 AM

well maybe someone else can answer but I am no .htaccess expert, I just muddle thru it.

theadventurebite Sep 27, 2012 11:05 AM

You would think something like a basic redirect would have better tutorials right? I'll report back if I find a good one.

lmilesw Sep 27, 2012 08:30 PM

You could use a page redirect plugin and then create a page titled Food and redirect to the category.

theadventurebite Sep 28, 2012 03:58 AM

That def is the most common way for Wordpress. I just have so many plugins that I'm trying my best to actually code things in more.

SigWS Oct 4, 2012 12:39 PM

There is a plugin for wordpress that does this... I just can't remember the name of it offhand. Will update if I can find it.

Edit: it's called "WP No Category Base" -- just installed it and it works great.

lmilesw Oct 4, 2012 04:01 PM

Quote:

Originally Posted by theadventurebite (Post 90431)
I just have so many plugins that I'm trying my best to actually code things in more.

Here is an interesting article on the usage of plugins.


All times are GMT -6. The time now is 01:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.