Permalink for categories ONLY, leave the rest intact

Discussion in 'WordPress' started by wordpress3theme.com, Dec 16, 2010.

  1. #1
    Hello all,

    I'd like to create custom permalink for the categories but leave the rest intact. For example:

    mysite.com/?cat=1 will be mysite.com/house
    mysite.com/?cat=3 will be mysite.com/lands

    AND the rest stays intact:

    mysite.com/?p=123
    mysite.com/?page_id=96

    I tried some htaccess rewrite tutorials but no success yet...

    Thanks!
     
    wordpress3theme.com, Dec 16, 2010 IP
  2. arunbasillal

    arunbasillal Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am not sure why you want this. Not sure if this is possible either. I would advise to go with custom permalinks for posts instead of mysite.com/?p=123. This will help you in the long run :)
     
    arunbasillal, Dec 16, 2010 IP
  3. wordpress3theme.com

    wordpress3theme.com Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The reason I need this because I made a custom theme for a client but in the last moment he told me to have a menu like that. So I should rewrite whole codeblocks if I'd use everything with fancy permalinks.

    However I figured it out:

    * This plug-in helped me to make category menu different: http://wordpress.org/extend/plugins/advanced-permalinks/

    * And I had to put these lines into the .htaccess file:

    # BEGIN WordPress
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^houses$ ?cat=1 [L]
    RewriteRule ^lands$ ?cat=3 [L]
    # END WordPress
     
    wordpress3theme.com, Dec 17, 2010 IP
  4. arunbasillal

    arunbasillal Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think you should tell your client how important it is to have proper permalinks. It would benefit him in the long run :)
     
    arunbasillal, Dec 17, 2010 IP