Hi Guys! Few month ago i mistakenly write /%postname%/.html instead of /%postname%.html but now if i make it correct like /%postname%.html then the result on google redirect to "page not found page" can any body tell me what to write in my .htaccess file to redirect my url from google /%postname%/.html to /%postname%.html
tough one to crack... try posting your issue in search engine section (http://forums.digitalpoint.com/forumdisplay.php?f=5) if you need technical help using the redirects.. read this sticky (http://forums.digitalpoint.com/showthread.php?t=23044) or this wordpress documentation (http://codex.wordpress.org/Using_Permalinks)
This is because of your have not redirected your old url to new one. Just add this line in your htaccess: Redirect 301 /%postname%/.html http://www.yourdomainname.com/%postname%.html and your post would work fine.
Just add the following line in your htacces: Redirect 301 /important-trainer./html http://www.hulsestrength.com/important-trainer.html This will redirect your older page to new one. Similarly you can redirect your other pages as well.
no it is not working when i click on my old URL through google, it take me to page can not found page # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Redirect 301 /real-inspiration/.html http://www.hulsestrength.com/real-inspiration.html
Why did you add fake file extensions anyway? It just looks messy to human eyes and search engines. To answer your question, you'll have to manually redirect each post with htaccess's "Redirect 301" Redirect 301 /old-url/.html http://newurl.com/post.html Code (markup):
You may need to contact your hosting provider and confirm that you have Apache's Mod-Rewrite Rules enabled.