Loaded Commerce Community

Banner


Board index » Loaded Commerce Support » Install & Config

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: redirect
PostPosted: Thu Dec 22, 2011 4:26 pm 
Offline
CRE Freak
User avatar

Joined: Sat Dec 13, 2008 1:16 am
Posts: 44
Hi guys... Back here again. I need to redirect a few pages because google keeps sending people to the old pages.
Ive tried redirect in the htaccess in the main root, but it doesnt work.
What i need is to redirect with 301 this page: http://www.sempresexy.com/index.php?cPath=132_133
to this page http://www.sempresexy.com/Fleshlight-Po ... index.html

Any suggestions?

Angelina :?


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Sun Dec 25, 2011 5:03 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Try (in root htaccess):

Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} /index.php?cPath=132_133
RewriteRule ^(.*) http://www.sempresexy.com/Fleshlight-Portugal/c67/index.html [R=301,L]

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Mon Dec 26, 2011 7:14 am 
Offline
CRE Freak
User avatar

Joined: Sat Dec 13, 2008 1:16 am
Posts: 44
Tried it, but doesnt work. Any other suggestions?
:)


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Mon Dec 26, 2011 10:39 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Yep - what else is in your htaccess file? Also, the redirect page doesn't exist ... it looks to me to be 'Fleshlight-Range' not 'Fleshlight-Portugal'. Also check the diagnostic file that's sittin on your server - several issues with category names.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Tue Dec 27, 2011 3:49 am 
Offline
CRE Freak
User avatar

Joined: Sat Dec 13, 2008 1:16 am
Posts: 44
Goodmorning,

The fleshlight portugal page is in the standard language what most customers use, namely portuguese.
If you go to google pt and type in fleshlight portugal that will be the page google shows. However, clicking on the link will give that there are no products in the category. Like this i am loosing many customers. Maybe there is another way of solving this?
Kind Regards,
Angelina :)

My htaccess file:
<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_php5.c>
php_flag register_long_arrays Off
php_flag register_globals Off
php_flag display_errors Off
</IfModule>

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
php_value register_globals 0
php_flag display_errors Off
php_flag track_errors Off
</IfModule>

RewriteEngine on
RewriteCond %{REQUEST_URL} /index.php?cPath=132_133
RewriteRule ^(.*) http://www.sempresexy.com/Fleshlight-Po ... index.html [R=301,L]


#CRE_SEO Install Begin
RewriteEngine on

RewriteBase /

/#cre SEO check for images and skip all the other rules for performance reasons only
RewriteRule ^.*\.gif|\.jpg|\.png|\.css|\.js|\.php$ - [L]

# cre SEO reformats for product_info.html pages
RewriteRule ^m(.*)/(.*)/p(.*)/(.*)/product_info\.html$ product_info.php?manufacturers_id=$1&products_id=$3 [QSA,L]
RewriteRule ^p(.*)/(.*)/product_info\.html$ product_info.php?products_id=$1 [QSA,L]
RewriteRule ^(.*)/c(.*)/p(.*)/(.*)/product_info\.html$ product_info.php?cPath=$2&products_id=$3 [QSA,L]

# cre SEO reformat for index.html pages
RewriteRule ^m(.*)/(.*)/p(.*)/(.*)/index\.html$ index.php?manufacturers_id=$1&products_id=$3 [QSA,L]
RewriteRule ^m(.*)/(.*)/index\.html$ index.php?manufacturers_id=$1 [QSA,L]
RewriteRule ^(.*)/c(.*)/m(.*)/(.*)/p(.*)/(.*)/index\.html$ index.php?cPath=$2&products_id=$5 [QSA,L]
RewriteRule ^(.*)/c(.*)/p(.*)/(.*)/index\.html$ index.php?cPath=$2&products_id=$3 [QSA,L]
RewriteRule ^(.*)/c(.*)/index\.html$ index.php?cPath=$2 [QSA,L]

# cre SEO reformat for information.html pages
RewriteRule ^i(.*)/(.*)/information\.html$ information.php?info_id=$1 [QSA,L]

# cre SEO reformat for pages.html pages
RewriteRule ^p(.*)/(.*)/pages\.html$ pages.php?pID=$1 [QSA,L]
RewriteRule ^(.*)/c(.*)/p(.*)/(.*)/pages\.html$ pages.php?cID=$2&pID=$3 [QSA,L]
RewriteRule ^(.*)/c(.*)/pages\.html$ pages.php?cID=$2 [QSA,L]
RewriteRule ^(.*)/CDpath(.*)/p(.*)/(.*)/pages\.html$ pages.php?CDpath=$2&pID=$3 [QSA,L]
RewriteRule ^(.*)/CDpath(.*)/pages\.html$ pages.php?CDpath=$2 [QSA,L]

# cre SEO reformat for articles.html pages
RewriteRule ^(.*)/t(.*)/a(.*)/(.*)/articles\.html$ articles.php?tPath=$2&articles_id=$3 [QSA,L]
RewriteRule ^(.*)/t(.*)/articles\.html$ articles.php?tPath=$2 [QSA,L]

# cre SEO reformat for article_info.html pages
RewriteRule ^a(.*)/(.*)/article_info\.html$ article_info.php?articles_id=$1 [QSA,L]
RewriteRule ^(.*)/t(.*)/article_info\.html$ article_info.php?tPath=$2 [QSA,L]

# cre SEO reformats for product_reviews.html pages
RewriteRule ^p(.*)/(.*)/product_reviews\.html$ product_reviews.php?products_id=$1 [QSA,L]
RewriteRule ^(.*)/c(.*)/p(.*)/(.*)/product_reviews\.html$ product_reviews.php?products_id=$3 [QSA,L]

# cre SEO reformats for product_reviews_info.html pages
RewriteRule ^p(.*)/(.*)/review(.*)/product_reviews_info\.html$ product_reviews_info.php?products_id=$1&reviews_id=$3 [QSA,L]

# cre SEO reformat for FDMS pages
RewriteRule ^f(.*)/(.*)/fdm_file_detail\.html$ fdm_file_detail.php?file_id=$1 [QSA,L]
RewriteRule ^(.*)/fPath(.*)/fdm_folder_files\.html$ fdm_folder_files.php?fPath=$2 [QSA,L]

# cre SEO reformat for FSS pages
RewriteRule ^(.*)/fPath(.*)/form(.*)/(.*)/fss_forms_detail\.html$ fss_forms_detail.php?fPath=$2&forms_id=$3 [QSA,L]
RewriteRule ^(.*)/fPath(.*)/fss_forms_index\.html$ fss_forms_index.php?fPath=$2 [QSA,L]

#cre SEO catch all in case other rules did not match
RewriteRule ^(product_info|index|information|pages|articles|article_info|product_reviews|product_reviews_info)\.html$ $1.php [QSA,L]

RewriteEngine on
RewriteCond %{REQUEST_URL} /index.php?cPath=132_133
RewriteRule ^(.*) http://www.sempresexy.com/Fleshlight-Po ... index.html [R=301,L]


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Tue Dec 27, 2011 4:05 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Sure - but check your categories - you don't have one called 'Fleshlight-Portugal' ... looking at your site it's called 'Fleshlight-Range', doesn't matter what language it's in, it doesn't exist. The redirect I gave won't work if the target url doesn't exist.

I also wouldn't recommend using the Cre url rewriter - it's junk. It'll create duplicate urls for the same page.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Tue Dec 27, 2011 5:35 am 
Offline
CRE Freak
User avatar

Joined: Sat Dec 13, 2008 1:16 am
Posts: 44
Seems google now gets the new page so no need anymore to redirect. But if the creloaded rewrite rules are so bad, which one would be better to use?
:roll:


Top
 Profile  
 
 Post subject: Re: redirect
PostPosted: Tue Dec 27, 2011 5:46 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Sure it'll get the new page ... I thought the point of your post was to find how to redirect the old url (which it probably still has indexed and isn't redirecting properly)?

Also, you've got the redirect in twice according to your htaccess post.
Why not try removing the first one and changing the one at the end to:
Code:
RewriteCond %{REQUEST_URL} /index.php?cPath=132_133
RewriteRule ^(.*) http://www.sempresexy.com/Fleshlight-Range/c67/index.html [R=301,L]

because this category exists, last I looked.

While you're in there, I'd remove:

Code:
<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_php5.c>
php_flag register_long_arrays Off
php_flag register_globals Off
php_flag display_errors Off
</IfModule>

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
php_value register_globals 0
php_flag display_errors Off
php_flag track_errors Off
</IfModule>

as none of that will be helping (unless you're running on an old hosted server that needs to be upgraded.)

Magenticone powerseos, magic seos, ultimate seos that come with 6.5 ... all a bit better than the stock Cre Url rewriter.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Board index » Loaded Commerce Support » Install & Config

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 8:13 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy