.htaccess
-
Hi,
I am a new user of WP and I want to replace my old html pages with WordPress. How to redirect my old html pages to new WordPress pages in .htaccess?
Example:
domain.com/portfolio.html -> domain.com/portfolio/Is that correct?
Redirect permanent domain.com/portfolio.html domain.com/portfolio/
order deny,allow<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
I have been trying many times but it doesn’t work. Page not found error 500.
Thankx in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘.htaccess’ is closed to new replies.