Hi.
If you wanted to redirect just that file then this code can go in the .htaccess of your root:
# Redirect the file
Redirect /Auto/UI/CMS.aspx?id=119&lang=ar http://YOUR_SITE_HERE.com/?p=199&lang=ar
# Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
(The second part prevents viewing of the .htaccess; I prefer using that, but you can remove it if you’d prefer.)
Of course replace the YOUR_SITE_HERE.com with your site domain.
Also note that if you change your permalinks this will no longer work as it will redirect to the old permalink.
Please correct me if my syntax is incorrect.
thanks for your quick reply, but no i need to redirect all Post ID not only 199,
sorry but aslo i test ur code isn’t working too for id 199
Let me back up one-
I see you have WordPress on the http://www.mywebsite.com/?p=199&lang=ar directory but what do you have on the http://www.mywebsite.com/Auto/UI/CMS.aspx?id=119&lang=ar one?
its a aspx, for a x developer,
i convert the website database to wodpress and i move all post
and each post has same id , so i want to redirect all link to the new links