• hello,

    I have created subdomain. say : demo.domain.com
    i want to redirect it to : demo.domain.com/?page_id=2450

    here i wrote the code :

    ReWriteCond %{HTTP_HOST} ^demo\.domain\.com$
    ReWriteCond %{REQUEST_URI} /
    RewriteRule ^(.*)$ http://demo.domain.com/?page_id=2450 [R=302,L]

    and i put the above code in .htaccess at root… but it is doing nothing and not redirecting.

    can anyone help please ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess redirect subdomain issue’ is closed to new replies.