My urdu is www.mydomain.com/hello/.html i want to make it like that www.mydomain.com/hello.html i can do it through wordpress premlink option but i does not want to loss my indexed result at google plz let me know which code is used? I mean when some one click on www.mydomain.com/hello/.html it should automatic redirect to www.mydomain.com/hello.html
In the .htaccess in the root of your web add the following lines after the rewrite engine is set to ON and before the code inserted by WordPress: RewriteCond $1 hello/\.html [NC] RewriteRule (.*) http://www.example.com/hello.html [R=301,L] substituting "yourdomain.tld" for example.com above.
I used this guide when I did a redirect it on my site http://www.internetbasedmoms.com/seo/301-redirect.html
I tried the following code # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond $1 real-inspiration/\.html [R=301,L] [NC] RewriteRule (.*) http://www.hulsestrength.com/real-inspiration.html [R=301,L] RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress and its work, when i added some more links like that, the page show SERVER error Internal Server Error And now it is no more working, even the code which worked