Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

301 redirect


Ziegler

Recommended Posts

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

Link to comment
Share on other sites

In your .htaccess file located in your DOCUMENT ROOT place this line of code:

Redirect permanent /catalog http://www.domain.com

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...