MagneticOne Support Forum
  MagneticOne Support Forum > X-Cart Shopping Cart > X-Cart Advanced SEO
FAQ Search Today's Posts Mark Forums Read

This forum is closed and no longer supported. If you would like to submit a bug or suggest a feature please click here


X-Cart Advanced SEO Support forum for X-Cart Advanced SEO

 
 
Thread Tools Display Modes
  #1  
Old 09-30-2008, 04:53 AM
tommyvideo tommyvideo is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
tommyvideo is on a distinguished road
Default 401 redirection problem

How can I remove 401 ( authorization req. ) redirection from advanced seo .htaccess or I must edit 404handler.php ?

I would like redirect only 404 ( page not found )

####### Advanced SEO Start #######

RewriteEngine on

RewriteRule ^(.*)-p-([0-9]*)-c-([0-9]*).html* 404_redirector_nowhere.php?cat=$3&productid=$2$4 [NC] [L]
RewriteRule ^(.*)-p-([0-9]*).html* 404_redirector_nowhere.php?productid=$2$3 [NC] [L]
RewriteRule ^(.*)-c-([0-9]*).html* 404_redirector_nowhere.php?cat=$2$3 [NC] [L]

RewriteRule ^[^/]$ home.php [L]
RewriteRule ^[^/]$ product.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) 404handler.php [NC] [L]

RewriteRule ^index-(.*).html(.*) 404handler.php? [NC] [L]

####### Advanced SEO Finish #######
  #2  
Old 09-30-2008, 05:02 PM
natalia's Avatar
natalia natalia is offline
Moderator
 
Join Date: Apr 2008
Posts: 357
natalia is on a distinguished road
Default

Dear Tommy,

Thank you for asking

To redirect customers to your 401 page instead of SEO 404 please add the following line to the end of your .htaccess file:

Quote:
ErrorDocument 401 /PATH/401.html
Please replace the PATH with actual path to your 401 page. If you do not have one - create it

Please let us know if you have any questions
  #3  
Old 09-30-2008, 07:51 PM
tommyvideo tommyvideo is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
tommyvideo is on a distinguished road
Default

Quote:
Originally Posted by Natalia View Post
Dear Tommy,

Thank you for asking

To redirect customers to your 401 page instead of SEO 404 please add the following line to the end of your .htaccess file:



Please replace the PATH with actual path to your 401 page. If you do not have one - create it

Please let us know if you have any questions
I dont need 401 redirection.
I must remove 401 redirection from .htaccess because I have protected folders ( username and pass ) for my customers.

With active 401 redirection, my customers cant download order from protected folder.

Tommy
  #4  
Old 10-01-2008, 01:33 PM
natalia's Avatar
natalia natalia is offline
Moderator
 
Join Date: Apr 2008
Posts: 357
natalia is on a distinguished road
Default

Dear Tommy,

Seems there was a misunderstanding, I apologize for not clearing out the situation right away.

As I understood, you have a protected directory and a customer has to login to access it and needs to have an order. Thus authorization is required there. And users that do not have permission to access the order will see the 401 page.

Can you please explain :
Quote:
I must remove 401 redirection from .htaccess because I have protected folders ( username and pass ) for my customers.
You see, most likely the path to 401 page is incorrect now (basically you do not have 401 redirection at this time), so when trying to access this page a 404 (not found) is returned. And for all not found pages you have redirection to our handler. So the 404 page is shown.

This is why we offered that solution : if 401 page exists then "not found" message will not be shown.

There is another solution - you can remove protection, but we thought that is not an option for you

Please show us your complete .htaccess file and we'll return it to you with necessary changes. Just specify if you want to keep the folder protected or not.

Sincerely
  #5  
Old 10-01-2008, 06:51 PM
tommyvideo tommyvideo is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
tommyvideo is on a distinguished road
Default

Quote:
Originally Posted by Natalia View Post
Dear Tommy,

Seems there was a misunderstanding, I apologize for not clearing out the situation right away.

As I understood, you have a protected directory and a customer has to login to access it and needs to have an order. Thus authorization is required there. And users that do not have permission to access the order will see the 401 page.

Can you please explain :


You see, most likely the path to 401 page is incorrect now (basically you do not have 401 redirection at this time), so when trying to access this page a 404 (not found) is returned. And for all not found pages you have redirection to our handler. So the 404 page is shown.

This is why we offered that solution : if 401 page exists then "not found" message will not be shown.

There is another solution - you can remove protection, but we thought that is not an option for you

Please show us your complete .htaccess file and we'll return it to you with necessary changes. Just specify if you want to keep the folder protected or not.

Sincerely
is it possible remove all error pages redirection from your .htaccess and 404handler ?

I would like use only .htaccess codes for seo urls without any error redirection
  #6  
Old 10-07-2008, 11:33 AM
natalia's Avatar
natalia natalia is offline
Moderator
 
Join Date: Apr 2008
Posts: 357
natalia is on a distinguished road
Default

Hello Tommy,

It is possible to remove the redirection. In this case, just remove the line:

ErrorDocument 404 /<FOLDER OF YOUR STORE>/404_handler.php

This should not affect the SEO module in general.

Please check and let us know how it works
  #7  
Old 10-08-2008, 11:06 PM
tommyvideo tommyvideo is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
tommyvideo is on a distinguished road
Default

Quote:
Originally Posted by Natalia View Post
Hello Tommy,

It is possible to remove the redirection. In this case, just remove the line:

ErrorDocument 404 /<FOLDER OF YOUR STORE>/404_handler.php

This should not affect the SEO module in general.

Please check and let us know how it works
PROBLEM FIXED

I have create blank 401.shtml page using CPANEL and advanced seo works fine with my download links

Last edited by tommyvideo : 10-09-2008 at 12:29 AM.
  #8  
Old 10-09-2008, 01:23 PM
natalia's Avatar
natalia natalia is offline
Moderator
 
Join Date: Apr 2008
Posts: 357
natalia is on a distinguished road
Default

Dear Tommy

Thank you for understanding and update. That solution to create a 401 page is really the best

Sincerely
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



MagneticOne forums © 2008-2010 Innovative Software Development.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.