FYI<br>There's a module for that.<br><br><a href="http://drupal.org/project/path_redirect">http://drupal.org/project/path_redirect</a><br><br clear="all">Ryan LeTulle<br><br><a href="http://www.bayousoft.com" target="_blank">bayousoft.com</a><br>
<a href="http://www.twitter.com/bayousoft" target="_blank">twitter.com/bayousoft</a><br><br><br><br>
<br><br><div class="gmail_quote">On Fri, Nov 26, 2010 at 5:59 AM, Pinbrook Gmail Support <span dir="ltr"><<a href="mailto:pinbrook@gmail.com">pinbrook@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
just hoping the lack of replies means no-one can see anything wrong<br>
with the 301 lines so maybe there is something else in the htaccess<br>
that is causing the knock on effect. this really has me stumped!<br>
<br>
# Apache/PHP/Drupal settings:<br>
#<br>
<br>
# Protect files and directories from prying eyes.<br>
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$"><br>
Order allow,deny<br>
</FilesMatch><br>
<br>
# Don't show directory listings for URLs which map to a directory.<br>
# Options -Indexes<br>
<br>
# Follow symbolic links in this directory.<br>
# Options +FollowSymLinks<br>
<br>
# Make Drupal handle any 404 errors.<br>
# ErrorDocument 404 /index.php<br>
<br>
# Force simple error message for requests for non-existent favicon.ico.<br>
<Files favicon.ico><br>
# There is no end quote below, for compatibility with Apache 1.3.<br>
ErrorDocument 404 "The requested file favicon.ico was not found.<br>
</Files><br>
<br>
# Set the default handler.<br>
DirectoryIndex index.php<br>
<br>
<br>
# Requires mod_expires to be enabled.<br>
<IfModule mod_expires.c><br>
# Enable expirations.<br>
ExpiresActive On<br>
<br>
# Cache all files for 2 weeks after access (A).<br>
ExpiresDefault A1209600<br>
<br>
<FilesMatch \.php$><br>
# Do not allow PHP scripts to be cached unless they explicitly send cache<br>
# headers themselves. Otherwise all scripts would have to overwrite the<br>
# headers set by mod_expires if they want another caching behavior. This may<br>
# fail if an error occurs early in the bootstrap process, and it may cause<br>
# problems if a non-Drupal PHP file is installed in a subdirectory.<br>
ExpiresActive Off<br>
</FilesMatch><br>
</IfModule><br>
<br>
# Various rewrite rules.<br>
<IfModule mod_rewrite.c><br>
RewriteEngine on<br>
<br>
# If your site can be accessed both with and without the 'www.' prefix, you<br>
# can use one of the following settings to redirect users to your preferred<br>
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:<br>
#<br>
# To redirect all users to access the site WITH the 'www.' prefix,<br>
# (<a href="http://example.com/." target="_blank">http://example.com/.</a>.. will be redirected to <a href="http://www.example.com/.." target="_blank">http://www.example.com/..</a>.)<br>
# adapt and uncomment the following:<br>
# RewriteCond %{HTTP_HOST} ^rannochsmokery\.<a href="http://co.uk" target="_blank">co.uk</a>$ [NC]<br>
# RewriteRule ^(.*)$ <a href="http://www.rannochsmokery.co.uk/$1" target="_blank">http://www.rannochsmokery.co.uk/$1</a> [L,R=301]<br>
#<br>
# To redirect all users to access the site WITHOUT the 'www.' prefix,<br>
# (<a href="http://www.example.com/." target="_blank">http://www.example.com/.</a>.. will be redirected to <a href="http://example.com/.." target="_blank">http://example.com/..</a>.)<br>
# uncomment and adapt the following:<br>
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]<br>
# RewriteRule ^(.*)$ <a href="http://example.com/$1" target="_blank">http://example.com/$1</a> [L,R=301]<br>
<br>
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a<br>
# VirtualDocumentRoot and the rewrite rules are not working properly.<br>
# For example if your site is at <a href="http://example.com/drupal" target="_blank">http://example.com/drupal</a> uncomment and<br>
# modify the following line:<br>
# RewriteBase /drupal<br>
#<br>
# If your site is running in a VirtualDocumentRoot at <a href="http://example.com/" target="_blank">http://example.com/</a>,<br>
# uncomment the following line:<br>
# RewriteBase /<br>
<br>
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.<br>
# RewriteCond %{REQUEST_FILENAME} !-f<br>
# RewriteCond %{REQUEST_FILENAME} !-d<br>
# RewriteCond %{REQUEST_URI} !=/favicon.ico<br>
# RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br>
</IfModule><br>
<br>
# $Id: .htaccess,v 1.90.2.5 2010/02/02 07:25:22 dries Exp $<br>
<br>
# custom 301s added<br>
<div class="im"><br>
redirect 301 /acatalog/index.html<br>
</div><a href="http://www.taymouthcourtyard.co.uk/rannochsmokery/index.php" target="_blank">http://www.taymouthcourtyard.co.uk/rannochsmokery/index.php</a><br>
<div class="im">redirect 301 /acatalog/Smoked_Duck_Breast.html<br>
</div><a href="http://www.taymouthcourtyard.co.uk/rannochsmokery/smoked-meats-c-15.html" target="_blank">http://www.taymouthcourtyard.co.uk/rannochsmokery/smoked-meats-c-15.html</a><br>
<div><div></div><div class="h5"><br>
On 25 November 2010 18:39, Pinbrook Gmail Support <<a href="mailto:pinbrook@gmail.com">pinbrook@gmail.com</a>> wrote:<br>
> I have recently launched a new site and want to do 301 redirects from<br>
> the old pages to the new. So i am adding extra lines to the drupal<br>
> htaccess file.<br>
><br>
> But if i add<br>
><br>
> redirect 301 /acatalog/index.html<br>
> <a href="http://www.newdomain.co.uk/rannochsmokery/index.php" target="_blank">http://www.newdomain.co.uk/rannochsmokery/index.php</a><br>
> redirect 301 /acatalog/Smoked_Duck_Breast.html<br>
> <a href="http://www.newdomain.co.uk/rannochsmokery/smoked-meats-c-15.html" target="_blank">http://www.newdomain.co.uk/rannochsmokery/smoked-meats-c-15.html</a><br>
><br>
> at the bottom of htacess all subsequent visits via a browser to any<br>
> existing page on the site results in google saying "oops, that page<br>
> doesnt exsist" - if i remove the 301s all pages are found<br>
><br>
> What am i doing wrong in my htaccess please<br>
><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>