WordPress.org

Ready to get started?Download WordPress

Forums

simple htaccess question for seo friendly urls (1 post)

  1. jelv
    Member
    Posted 6 years ago #

    I have a static page/script, not controlled by wordpress uploaded in the root level. This page is used to dynamically display the product info for whatever product is chosen on product list pages. In my htaccess file I have the standard WordPress stuff, and I have added the following:

    RewriteEngine On
    RewriteRule ^product/([0-9]+)/$ /product.php?sku=$1

    I’m trying to be able to use product/1234 in the url string but still grab the sku number as a GET variable on my static (not controlled by wordpress) product.php page.

    If I delete the wordpress stuff, my rewriterule works perfectly, but of course the rest of the site doesn’t because the wordpress directives are gone. But with the wordpress stuff in place my rewriterule doesn’t work. Any suggestions for me?

Topic Closed

This topic has been closed to new replies.

About this Topic