Rewriterule give me always 404 error
-
Hi,
I want add the .html extension on just only page.
site.com/contact
to
site.com/contact.html
My .htaccess is:
# ========================================================== # Rewrite old link # ========================================================== RewriteRule ^contact$ /subdirectory/contact\.html [R=301,L] # ========================================================== # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /subdirectory/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /subdirectory/index.php [L] </IfModule> # END WordPress
The code:
RewriteRule ^contact$ /subdirectory/contact\.html [R=301,L]
make me correct urlsite.com/subdirectory/contact.html
but with 404 error.
Can you help me please?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Rewriterule give me always 404 error’ is closed to new replies.