WordPress.org

Forums

.htaccess perhaps? (5 posts)

  1. thejoker101
    Member
    Posted 10 years ago #

    I'm upgrading to WP 1.5 and I have installed WP-StatTraq. However, that runs in /wp-stattraq. I would like to have a link in my pages listing that links to it, but links as like /statistics. So I'm looking for the best way of doing that masking. .htaccess perhaps? Something else?

  2. Kafkaesqui

    Posted 10 years ago #

    I would use a simple rewrite rule in .htaccess:

    ************************************

    EDIT: Actually, a better one:

    RewriteRule ^statistics/? /wp-stattraq/ [QSA]

  3. thejoker101
    Member
    Posted 10 years ago #

    I added that in, but then links on the page don't work. I'm not familiar enough with .htaccess to know how to make it all work.

  4. Kafkaesqui

    Posted 10 years ago #

    I don't use StatTraq so I'm not sure what it requires, but is it hardcoded to use the /wp-stattraq directory?

  5. thejoker101
    Member
    Posted 10 years ago #

    Turns out I can just rename the /wp-stattraq/ directory to /statistics/. I figured there was some relevance to the directory being named what it was, but all the links are just ="index.php?..." so it didn't matter what directory it was in. I appreciate your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.