Support » Fixing WordPress » ASPX dynamic redirecct to wordpress ? htacess

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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
    # Prevent viewing of .htaccess file
    <Files .htaccess>
    order allow,deny
    deny from all

    (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 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 directory but what do you have on the 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ASPX dynamic redirecct to wordpress ? htacess’ is closed to new replies.