Hi all, I have a Wordpress blog page URL as: http://www.mysite.com/about but I want to use the following URL instead: http://www.mysite.com/about.html Can anyone please tell me how to achieve it using mode rewrite? Thanks in advance.
Change your permalink setting to /%postname%.html and update mode rewrite to <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
thank you for you quick reply. But i just want to do it for the "about" page, but not others. (sounds stupid, but ya, only that "about" page) Can you tell me how to do that? Thanks a lot.
hm... it doesn't work for this: RewriteRule ^free-game-downloads$ free-game-downloads.html [L] my site: http://www.km603.com/free-game-downloads Here is what I have so far: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteRule ^free-game-downloads$ free-game-downloads.html [L] </IfModule> # END WordPress Code (markup):
change the order: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^free-game-downloads$ free-game-downloads.html [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Code (markup): btw, if that page is already indexed in search engine, i suggest you add a 301 header to it, so that it retains his status and links - [L,R=301] instead of [L]