.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 https://domain/profile/username.htm the system will turn in to
https://domain/index.php?user=usernameI’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 https://domain/profile/username.htm, i always reach a 404 page made by WP.
Any idea or suggestion to fix this?
Thanks in advance.
- The topic ‘.htaccess mod_rewrite help’ is closed to new replies.