![]() |
|
|||||||
| Register | FAQ | Search | Today's Posts | Mark Forums Read |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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:
Please let us know if you have any questions |
|
#3
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
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:
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
|
|||
|
|||
|
Quote:
I would like use only .htaccess codes for seo urls without any error redirection |
|
#6
|
||||
|
||||
|
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
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
Dear Tommy
Thank you for understanding and update. That solution to create a 401 page is really the best Sincerely |