WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] .htaccess mod_rewrite help

[Resolved] .htaccess mod_rewrite help

  • Hi, i got a trouble.

    I use WP 2.0.4, actually my .htacess is the one generated as default by Wp

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

    I wanted to add a new rule like:

    if i point on http://domain/profile/username.htm the system will turn in to
    http://domain/index.php?user=username

    I’ve write this rule:

    RewriteRule ^/profie/(.*).htm$ index.php?user=$1 [L]

    So my new .htaccess looked like this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^/profie/(.*).htm$ index.php?user=$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    But if i browse http://domain/profile/username.htm, i always reach a 404 page made by WP.

    Any idea or suggestion to fix this?

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] .htaccess mod_rewrite help’ is closed to new replies.
Skip to toolbar