I am new to web design and am now looking after a small website for a club. I have created a subdomain to be used for testing new ideas and have copied over Wordpress and the SQL database. Everything works fine except that the subdomain site has no styling, all the pictures are not showing and the formatting has disappeared.
I have searched through several forums and think I need to put coding in the .htaccess file that will redirect the css to the main domain instead of the subdomain. However I cannot find an example of this code to amend. Can anybody help with the coding I need?
I am new to web design and am now looking after a small website for a club. I have created a subdomain to be used for testing new ideas and have copied over Wordpress and the SQL database. Everything works fine except that the subdomain site has no styling, all the pictures are not showing and the formatting has disappeared.
I have searched through several forums and think I need to put coding in the .htaccess file that will redirect the css to the main domain instead of the subdomain. Is this correct or is there some other error in the css? Can anybody help?
I also have a .htaccess file in my main domain folder. Should I have 2 .htaccess files or will there be conflict between the two? This new coding in my .htaccess file does not correct my problem. Can anyone help?
The problem is that if I have separate style sheets, one for the main site and one for the subdomain, the browser cannot find the style sheets for the subdomain for some reason and I end up with a subdomain page with no styling. The only way round it is if I use .htaccess unless I can find another easier way.
The file is there on the server but for some reason the browsers cannot link to it. Its the same problem with all the browsers Ive tried. I think it has something to do with the fact im using a subdomain.
At present Im trying to redirect it to the main domain to get round this problem.
Thanks for you advice. Unfortunately the code that looks for the CSS files is generated by Wordpress so I cannot change the file paths without using something like a command in .htaccess. I’m looking for a way to change the paths to the .CSS files without changing the paths to other areas in my support site.
If I copy the support page to my PC and change the link path to the CSS file from <href="www.support.rdmac.org.uk/... to <href="www.rdmac.org.uk/... the page seems to render properly.
Perhaps moving this thread to the WordPress forum where someone may have experience installing WP in a subdomain might be more helpful.