Jump to content

URL Redirect Problem


Recommended Posts

I have noticed I have some links that are 404 so I am using a 301 redirect to fix the links.  I have the htaccess correctly installed but for some reason, It seems the code that is being generated doesn't work.  I put in www.abc.com/product.php?productid=16143 and I get this instead
 
www.abc.com/actual server path is being inserted/10-lamb-millet-and-rice-dog-food.html
 
for some reason it is bringing in the actual server path
 
Here is the applicable code in htaccess
 
RewriteCond %{REQUEST_URI} ^/lamb-millet-and-rice-dog-food [NC,OR]
RewriteCond %{QUERY_STRING} ^productid=16143 [NC,OR]
RewriteCond %{QUERY_STRING} ^productid=16144 [NC,OR]
RewriteCond %{QUERY_STRING} ^productid=16146 [NC,OR]
RewriteCond %{QUERY_STRING} ^productid=16145 [NC,OR]
RewriteCond %{QUERY_STRING} ^productid=16147 [NC]
RewriteRule ^.+$ %{ENV:REWRITEBASE}home/10-lamb-millet-and-rice-dog-food.html? [R=301,L]
 
Please help I need to get these 404's fixed.
 

Thanks,

 

Randal

 

Here are my site details:

 

Server information: Linux #1 SMP Tue Oct 2 22:01:37 EDT 2012 i686

Server software version: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

PHP version: 5.2.17

Memory limit: 256M

Max execution time: 30

Database information

MySQL version: 5.0.96-community

MySQL engine: InnoDB

Tables prefix: ps_

Store information

PrestaShop version: 1.5.4.1

Shop URL: https://www.healthypetcorner.com/

Current theme in use: warehouse

Mail configuration

Mail method: You are using the PHP mail function.

Your information

Your web browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0

Edited by sharingsunshine (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...