Google Answers Logo
View Question
 
Q: Htaccess question ( No Answer,   0 Comments )
Question  
Subject: Htaccess question
Category: Computers > Internet
Asked by: j_philipp-ga
List Price: $20.00
Posted: 23 Jan 2004 06:18 PST
Expires: 28 Jan 2004 10:24 PST
Question ID: 299291
I have an htaccess question. I wanted to make my URLs more user and
search engine friendly.

These were my old URLs:

http://www.example.com/book.php?title=bacon-essays&part=2

These should become my new URLs:

http://www.example.com/bacon-2.html

The following htaccess on my server root already works (I renamed
"book.php" into "show.php"):
---------
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)-([0-9]*).html  show.php?title=$1&part=$2
---------

NOW, my problems, and your answer would be in fixing those or helping
me in those ways:

1) I included a permanenly moved header in my PHP for the "book.php",
as I now call it "show.php". However the header doesn't work. I asked
in newsgroups etc., so I don't think I can fix what seems to be a
misconfiguration of the Apache server. SO: How can I do this right
within the htaccess-file, the 301 permanent redirect of old URLs (e.g.
those indexed in search engines) to the new format as described above?
(Currently I achieve a 302, temporary move, which I believe is bad for
SEs.)

2.) Now while I was changing the URLs from old to new via htaccess, I
chose a method of "www.example.com/book/bacon-essays-2.html" (an
additional "book"). I just used this for one day or so but our big G.
already indexed this... and now I want to have a permanently moved 301
redirect via htaccess for this as well!


I believe a successful answer might consist of one or two lines,
unfortunately those have to be the right ones... but I'm willing to
try out different suggestions. Thanks from a fellow GAR who's getting
desperate!
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