• i have installed wordpress on my site, i have used the built in modrewite, when i post a item, the url is like:
    https://www.domain.com/my-item/
    the url is works well with the following code:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    and i have add my file to the blog, the file is search.php, and i want turn
    https://www.domain.com/search.php?name=search word
    to
    https://www.domain.com/search_word.html

    so i added this line to the .htacess file
    RewriteRule ([0-9a-zA-Z_???]*).html /search.php?name=$1
    but it will not works, can anyone help me how to write this code?
    thanks
    _____________

  • The topic ‘WordPress mod rewrite problem’ is closed to new replies.