WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to get: www.domain.com/ categoryname/postname (9 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    I've searched the forums. I've google searched. This should not be difficult.
    How can I get http://www.domain.com/categoryname/postname/
    I'm using the latest nightly build of WP ... and it lets me change my permalink options .... but then the links don't actually work.
    See the site at:
    http://www.clevelandschools.org/cms/wp/index.php
    The Permalinks being generated look like this:
    http://www.clevelandschools.org/cms/wp/about/dress-code/
    About is the category
    Dress Code is the postname
    This is the permalink I want ... but it doesn't work!
    Thoughts?

  2. Did you insert the small amount of code that WP provides after changing your permalink setting into your .htaccess file?

  3. sunshine
    Member
    Posted 9 years ago #

    "Did you...."
    I'd say no -- the error that occurs is a 404.

  4. If you didn't, then you should. That little amount of code is what makes everything work.

  5. Anonymous
    Unregistered
    Posted 9 years ago #

    The latest nightly build ... the one from October 25 I believe .... when you change the permalink structure - it doesn't prompt you with any code to add to the htaccess file?
    I had been using the latest stable version ... where when you make permalink structure changes - it prompts you with the new htaccess code to add.
    Then I read that category permalinks were supported in the later nightly builds. Soo - I upgraded - made the permalink changes - and this is what I get: Permalink Structure Updated. No rewrite mods to add. ???
    Am I missing something?

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    BTW .. .this is what I'm specifying as the structure:
    structure - /%category%/%postname%/
    Wordpress URI -- http://www.clevelandschools.org/cms/wp

  7. Anonymous
    Unregistered
    Posted 9 years ago #

    And... this is what my htaccess file looks like.
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /cms/wp/
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /cms/wp/index.php?feed=_$1 [QSA,L]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /cms/wp/index.php?feed=_$1&withcomments=1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /cms/wp/index.php?paged=$1 [QSA,L]
    RewriteRule ^site/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^site/([^/]+)/page/?([0-9]{1,})/?$ /cms/wp/index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^site/([^/]+)/?$ /cms/wp/index.php?pagename=$1 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /cms/wp/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /cms/wp/index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /cms/wp/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /cms/wp/index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /cms/wp/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /cms/wp/index.php?author_name=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /cms/wp/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /cms/wp/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /cms/wp/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /cms/wp/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /cms/wp/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/?$ /cms/wp/index.php?year=$1 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/trackback/?$ /cms/wp/index.php?category_name=$1&name=$2&tb=1 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?category_name=$1&name=$2&feed=$3 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/page/?([0-9]{1,})/?$ /cms/wp/index.php?category_name=$1&name=$2&paged=$3 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/?([0-9]+)?/?$ /cms/wp/index.php?category_name=$1&name=$2&page=$3 [QSA,L]
    RewriteRule ^(.+)/(feed|rdf|rss|rss2|atom)/?$ /cms/wp/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^(.+)/page/?([0-9]{1,})/?$ /cms/wp/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/?$ /cms/wp/index.php?category_name=$1 [QSA,L]
    </IfModule>
    # END WordPress

  8. Try removing
    # BEGIN WordPress
    <IfModule mod_rewrite.c>

    and
    </IfModule>
    # END WordPress

    It's a longshot, but it might work.

  9. moshu
    Member
    Posted 9 years ago #

    @anon (one of them :)

    The latest nightly build ... the one from October 25 I believe .... when you change the permalink structure - it doesn't prompt you with any code to add to the htaccess file?

    http://wordpress.org/support/6/15716#post-90636

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.