justmeir Posted December 16, 2007 Posted December 16, 2007 Hi, I instaled this script in www.domain.com/catalog The question is how I redirect my customers/visitores to this directory? I tried to use htaccess code but this didn't help: I wrote this in htaccess: <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> Redirect permanent http://www.achildishop.com http://achildishop.com/catalog order deny,allow Somebody have any more ideas? Thanks
justmeir Posted December 16, 2007 Author Posted December 16, 2007 Hi, I instaled this script in www.domain.com/catalog The question is how I redirect my customers/visitores to this directory? I tried to use htaccess code but this didn't help: I wrote this in htaccess: <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> Redirect permanent http://www.achildishop.com http://achildishop.com/catalog order deny,allow Somebody have any more ideas? Thanks I just did some changes but I have another problem The changes: <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> Redirect permanent / http://achildishop.com/catalog order deny,allow The web server redirect my web site but to strange directory: http://www.achildishop.com/catalogcatalogc...gcatalogcatalog how can i fix that, can somebody help me?
Avec Posted December 16, 2007 Posted December 16, 2007 In your index.html you could try <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Your Page Title</title> <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD> <BODY> Optional page text here. </BODY> </HTML>
germ Posted December 16, 2007 Posted December 16, 2007 That works, but some people say your site get's "black balled" by some major search engines if you do it that way. I really don't know. Just depends on if you believe what you read.... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
justmeir Posted December 16, 2007 Author Posted December 16, 2007 That works, but some people say your site get's "black balled" by some major search engines if you do it that way. I really don't know. Just depends on if you believe what you read.... :blush: So how do you think that i can redirect from achildishop.com to catalog directory? <_<
Guest Posted December 16, 2007 Posted December 16, 2007 So how do you think that i can redirect from achildishop.com to catalog directory? <_< Why not just use the store in root addon.
germ Posted December 16, 2007 Posted December 16, 2007 Personally, I'd like someone to post an example of a .htaccess file (that works) to redirect. There's a need for something like that. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted December 16, 2007 Posted December 16, 2007 meir, If you're willing to experiment a litlle... Change this: Redirect permanent http://www.achildishop.com http://achildishop.com/catalog to: Redirect 301 / http://achildishop.com/catalog/ Keep in mind I've not done this before, I'm just going from examples I've looked up on Google. I'm just making a slightly educated guess... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
justmeir Posted December 16, 2007 Author Posted December 16, 2007 meir, If you're willing to experiment a litlle... Change this: Redirect permanent http://www.achildishop.com http://achildishop.com/catalog to: Redirect 301 / http://achildishop.com/catalog/ Keep in mind I've not done this before, I'm just going from examples I've looked up on Google. I'm just making a slightly educated guess... :blush: It is realy worked!!! you are my hero!!! :thumbsup: :thumbsup: :thumbsup: ;)
justmeir Posted December 16, 2007 Author Posted December 16, 2007 In your index.html you could try <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Your Page Title</title> <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD> <BODY> Optional page text here. </BODY> </HTML> This is realy working too! but some people says that this will black you from search like google? is it ???
justmeir Posted December 16, 2007 Author Posted December 16, 2007 It is realy worked!!! you are my hero!!! :thumbsup: :thumbsup: :thumbsup: ;) after 3 hours this stop to work so i had to change it back to: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Your Page Title</title> <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD> <BODY> Optional page text here. </BODY> </HTML> I think this is the only thing that realy work thanks avec!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.