WordPress.org

Ready to get started?Download WordPress

Forums

What will be the .htaccess file to convert sitename/author/user to sitename/user (1 post)

  1. shraddhananda
    Member
    Posted 2 years ago #

    In wordpress the .htaccess file shows the following

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    
    # 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

    If we want to access a author then url is http://www.sitename.com/author/username

    Can some one access the the same page using the url http://www.sitename.com/username

    What would be the final .htaccess file then?

    Thanks a lot in advance.

    Best regards,
    Shraddha

Topic Closed

This topic has been closed to new replies.

About this Topic