Originally Posted by
traq
If your htaccess file format was incorrect, you would get an Internal Server Error (500) when you visited your site.
This doesn't mean that it does what you expect, of course. If you type in one of your desired URLs (e.g., http://mywebsite.com/view-wallpaper/wallpapername-2), do you see the correct page?
htaccess files do not generate xml sitemaps. What program are you using to do this? How does it work? Most sitemap generators will simply follow all the internal links it finds on your site.
I would suggest searching your site for links like the ones you say are generated. The htaccess file you showed us is not responsible for this - it only generates internal redirects, which are transparent to the user (or bots, or sitemap generators). Is there another htaccess file somewhere on your site? or are there any rewrite rules in your site's apache configuration?