Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: /category/postname or /postname ?

  1. #11
    Join Date
    Mar 2009
    Location
    N43°54′, E017°40′
    Posts
    242
    It doesn't work. What is in your .htaccess file? Here's mine:

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

  2. #12
    Quote Originally Posted by dmi View Post
    It doesn't work. What is in your .htaccess file? Here's mine:

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    Hm, interesting. I just found this: Using only %postname%

    Anyways, your .htaccess file should be updating automatically. Did you change the permissions to 777, save the permalink changes, then change the permissions back?

    If it doesn't update properly, WordPress will provide the code you need to put in the file. It appears below the permalink settings in a text box that appears. It says something along the lines of, "If your file was writable, we would update it automatically, but it's not. So here is the code you need to add: ____".

  3. #13
    Join Date
    Mar 2009
    Location
    N43°54′, E017°40′
    Posts
    242
    Quote Originally Posted by Nick View Post
    Hm, interesting. I just found this: Using only %postname%

    Anyways, your .htaccess file should be updating automatically. Did you change the permissions to 777, save the permalink changes, then change the permissions back?

    If it doesn't update properly, WordPress will provide the code you need to put in the file. It appears below the permalink settings in a text box that appears. It says something along the lines of, "If your file was writable, we would update it automatically, but it's not. So here is the code you need to add: ____".
    I tried all that, and it doesn't work. I guess I'll have to live with /cat/postname.

  4. #14
    I also always go for option 2 as well, and all my niche sites are based ont this structure. Works perfectly for me.
    Custom Wordpress Themer
    - Wordpress Portals & themes -

  5. #15
    I use option 1 because when i have category then my permalink has cat name as well as post title.



  6. #16
    Quote Originally Posted by jAlpari View Post
    I use option 1 because when i have category then my permalink has cat name as well as post title.
    Hi Jalpari..

    Welcome to NB!


    I prefer using the /postname rather than /cat/postname on my blogs.

    But, my main techno blog that Jalpari had helped in setting up has the former structure and it is mandatory for that as the theme is such that it displays posts based on categories on the home page

    But, i would only use /postname in normal circumstances


  7. #17
    I prefer /postname because with the categories I feel it makes the URL's a little too spamy. This method gives your URL's some key keywords but does not flood it with too many.

  8. #18
    You can only use option 1 if you only plan to place a post in a single category. If you place a post in multiple categories you create multiple URLs representing the same page. That creates a duplicate content situation with the search engines.

    Option 2 is much better. You should figure out why it is not working.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  9. I always use /postname myself, hardly ever use the category/post name or anything else.
    Xbox 720 Next Generation Console - Video gamers check it out!

  10. #20
    Option 2 is the best and simple of the two..
    Indian & International webmasters are welcome !!!

    http://NpXp.com

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Wordpress tag by category ?
    By SonnyCooL in forum Wordpress
    Replies: 4
    Last Post: 13 April, 2011, 14:17 PM
  2. Wordpress Category Help
    By Sami4u in forum Wordpress
    Replies: 2
    Last Post: 5 January, 2010, 19:03 PM
  3. [WTS] 24 articles on different category of jewelry
    By smartdeal in forum Content
    Replies: 6
    Last Post: 7 October, 2009, 21:00 PM
  4. Category and sub-category naming schemes
    By Dr. Stavros in forum Wordpress
    Replies: 4
    Last Post: 17 September, 2009, 15:43 PM
  5. Redirecting Category Pages Help...
    By Alex Fraiser in forum Promoting
    Replies: 2
    Last Post: 11 July, 2009, 13:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •