Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1

    Question steps to be taken when uploading site's files to a subfolder?

    Hello everybody,

    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?

    regards,
    art.
    Last edited by abduraooft; 09-20-2007 at 10:50 AM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Yes, everything is wrong with this approach.

    You should perform the redirect on the server side using PHP, ASP or htaccess.

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Thanks Pennimus,
    Could you please give some more hints to compare these two methods? If I use PHP, it'll be header() function, isn't?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Yes, one header() to send the HTTP response, and one to declare the new location. All can be found in the PHP manual.

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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)
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    No it won't, if you use a server side redirect the engines will list the redirect target instead of the root.

  • Users who have thanked Pennimus for this post:

    abduraooft (09-23-2007)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •