• Hi,
    I know a little abt url rewriting. This is what I am trying to accomplish. I have http://www.site.com/comics and I want to rewrite it as comics.site.com so that google indexes it this way. How to rewrite subdirectoies to subdomains in wordpress?

    Do I need to create real subdomains using hosting control panel to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not sure if this is totally the right way to do this but it works for me. Just add this to the top of your .htaccess in the comics folder.

    RewriteEngine On
    RewriteRule ^comics(.*)$ http://comics.site.com/$1 [R=301,L]
    Thread Starter animas

    (@animas)

    Can you please explain what’s happening here?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘rewrite subdirectory to subdomain’ is closed to new replies.