Google Answers Logo
View Question
 
Q: 301 redirect to subdirectory ( No Answer,   0 Comments )
Question  
Subject: 301 redirect to subdirectory
Category: Computers > Programming
Asked by: mike_needs_help_999-ga
List Price: $10.00
Posted: 11 Jun 2006 21:43 PDT
Expires: 11 Jul 2006 21:43 PDT
Question ID: 737351
I want to move pages to subdirectories with 301 redirects. I have
cpanel. I can set-up the redirects via cpanel without having to touch
.htacess. I copied a test page to the sub directory.  The page
redirects to the sub in this manner but it takes a long time then I get dead page:

http://www.subdirectory.mysite.com/page.html.  The only way
the sub directory page loads correctly is
http://www.mysite.com/subdirectory/page.html

I want the subdirectory page to show up:
http://www.subdirectory.mysite.com/page.html.  Subdirectory is
actually a web directory on our main site that isn't relevant to our
site, but it has PR6 pages and I want to move it so that the SE's look
at it as it's own domain and not part of our website. The sub's name
is web-directory.

Besides creating a .htacess page, do I also have to creat the
_vti_bin, etc, for each subdirectory for the pages to show? Do I have
to create image folders?  I read something about mod_rewrite and I
think that's the answer but I can't figure that out. Can I put a 
mod_rewrite command in the .htacess file?  Here is the
.htacess file that is on the root and I copied to the subdirectory. I
don't use frontpage by the way, it's just the code that was on the
file when I opened it :



# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mysite.com
AuthUserFile /home2/sitename/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/sitename/public_html/_vti_pvt/service.grp



I have a total of 30 pages I want to move to the subdirectory:
http://www.web-directory.mysite.com

Thanks in advance for the help. Mike
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy