Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-20-2007, 07:19 AM   PM User | #1
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

Last edited by abduraooft; 09-20-2007 at 10:50 AM..
abduraooft is offline   Reply With Quote
Old 09-21-2007, 11:24 AM   PM User | #2
Pennimus
Senior Coder

 
Join Date: Jul 2005
Location: UK
Posts: 1,051
Thanks: 6
Thanked 13 Times in 13 Posts
Pennimus is on a distinguished road
Yes, everything is wrong with this approach.

You should perform the redirect on the server side using PHP, ASP or htaccess.
Pennimus is offline   Reply With Quote
Old 09-21-2007, 11:36 AM   PM User | #3
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 09-22-2007, 01:42 AM   PM User | #4
Pennimus
Senior Coder

 
Join Date: Jul 2005
Location: UK
Posts: 1,051
Thanks: 6
Thanked 13 Times in 13 Posts
Pennimus is on a distinguished road
Yes, one header() to send the HTTP response, and one to declare the new location. All can be found in the PHP manual.
Pennimus is offline   Reply With Quote
Old 09-22-2007, 05:51 AM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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)
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 09-22-2007, 07:47 PM   PM User | #6
Pennimus
Senior Coder

 
Join Date: Jul 2005
Location: UK
Posts: 1,051
Thanks: 6
Thanked 13 Times in 13 Posts
Pennimus is on a distinguished road
No it won't, if you use a server side redirect the engines will list the redirect target instead of the root.
Pennimus is offline   Reply With Quote
Users who have thanked Pennimus for this post:
abduraooft (09-23-2007)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:41 AM.


Advertisement
Log in to turn off these ads.