Ziegler Posted June 11, 2005 Posted June 11, 2005 Hi, I have my shop stil below www.xxxx.de/catalog/...... no I am installing a new one belot www.xxx.de In which file (location) and code I have to introduce the 301 code? So that the Searching Enginges where I am indexed shall forward automatically to the new one. (valid for all pages inside oscommerce) thanks in advance for help. regards john
Iggy Posted June 11, 2005 Posted June 11, 2005 .htacces ? Iggy Everything's funny but nothing's a joke...
Guest Posted June 11, 2005 Posted June 11, 2005 In your .htaccess file located in your DOCUMENT ROOT place this line of code: Redirect permanent /catalog http://www.domain.com
Ziegler Posted June 11, 2005 Author Posted June 11, 2005 Hi thanks for quick reply. I introduced the line in that .htaccess which is located in ..../catalog/.htaccess Is this correct? # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ Redirect permanent /catalog http://www.newpage.de # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule>
Ziegler Posted June 12, 2005 Author Posted June 12, 2005 Now I put different redirect lines inside the .htaccess, for each subfolder/file .php which still are googeled. Every old google link goes now directly to the new page. :thumbsup: thanks for your help
Recommended Posts
Archived
This topic is now archived and is closed to further replies.