I have a wordpress installation set up on an add on domain. I was wondering if it is possible to do a wild card 301 redirect on all the pages so that the sub domain does not get indexed by the search engines. Not sure if I need to clarify but shall try. When you purchase a hosting account they assign a primary domain to the account. All of the add on domains are housed in folders within the primary domain. So if I used example.com as an add domain it would be accessible through example.primarydomain.com as well as example.com
I performed a 301 wild card redirect through cpanel but it only redirects the home page. So, if wanted “example.primarydomain.com/hello” redirected to “example.com/hello” the cpanel 301 option will not work. For some reason wordpress takes presidence over the other files. This is just a single blog and not a multi-user site. In my quest to find an answer it seems to always be related to the multi-user version. Any help would be appreciated.
- The topic ‘Wildcard redirect for WordPress’ is closed to new replies.