View Full Version : steps to be taken when uploading site's files to a subfolder?
09-20-2007, 08:19 AM
I find it easy to upload all files & folders of a site to a sub-folder of the root, so that I can keep my files separated from the default folders which come with website like cgi-bin, modlogan etc.
Then I add a meta tag in the root's index file to redirect to the required home page.
Anything wrong with this approach? What are the steps to be taken in this scenario to increase hits by search robots?
09-21-2007, 12:24 PM
Yes, everything is wrong with this approach.
You should perform the redirect on the server side using PHP, ASP or htaccess.
09-21-2007, 12:36 PM
Could you please give some more hints to compare these two methods? If I use PHP, it'll be header() function, isn't?
09-22-2007, 02:42 AM
Yes, one header() to send the HTTP response, and one to declare the new location. All can be found in the PHP manual.
09-22-2007, 06:51 AM
Actually I used this meta on my understanding(mis?) about meta tags in past.
All that I required was to put its meta-descriptor in the root's index file, at the same time the users should get the specified files in the subdirectory(using meta-refresh) and thus whenever the website is listed in SEs like Google, the description would be showed along with my site name www.mydomain.com instead of www.mydomain.com/myfolder/myfile.
Now my concern is whether this header() will serve all the above requirements? (I know meta-descriptor is no more considered by robots and I'll aim for the content only)
09-22-2007, 08:47 PM
No it won't, if you use a server side redirect the engines will list the redirect target instead of the root.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.