WordPress.org

Ready to get started?Download WordPress

Forums

Troubles with permalink & .htaccess (1 post)

  1. bat755
    Member
    Posted 6 years ago #

    Hi,
    I have some troubles with my wordpress pages' urls. I've set the permalink structure as follows: posts/%year%/%monthnum%/%day%.html and works fine. My problem is the url of my wordpress pages that remains /pagename. I want it to be /pagename.html. On top of that I would like to pass some variables to my archive page.

    I would like to create a rule in .htaccess in order to rewrite urls like http://domain.com/archive/?year=2007&month=8 into http://domain/archive/2007/9.html. I've tried to fix that in so many ways but I couldn't solve this issue. :(
    Thanx in advance.

    actually my .htaccess file looks like that:

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

    Sebastiano

Topic Closed

This topic has been closed to new replies.

About this Topic