ErikOS Posted December 4, 2004 Posted December 4, 2004 Does anyone no the sytax to redirect the www.mydomain.com to www.mydomain.com/catalog? :-"
OceanRanch Posted December 4, 2004 Posted December 4, 2004 Create an index.html or an index.php in your root as follows. <html> <head> <title>My Site</title> <meta http-equiv="refresh" content="0;url=www.mydomain.com/catalog"> </head> </html> HTH Tom
ErikOS Posted December 5, 2004 Author Posted December 5, 2004 Create an index.html or an index.php in your root as follows.<html> <head> <title>My Site</title> <meta http-equiv="refresh" content="0;url=www.mydomain.com/catalog"> </head> </html> HTH Tom <{POST_SNAPBACK}> thanks! I did this and it tries to go to the url http://www.mydomain.com/www.mydomain.com/catalog it doubles the url for some reason
Guest Posted December 5, 2004 Posted December 5, 2004 you can do it via php . .. create an index.php, douse the index.html, and use this: <? header('Location: /index.php'); ?> where location points where you want it to go, ie catalog/index.php
Guest Posted December 5, 2004 Posted December 5, 2004 Does anyone no the sytax to redirect the www.mydomain.com to www.mydomain.com/catalog? :-" <{POST_SNAPBACK}> Try adding the following line to the .htaccess page: Redirect /index.html http://www.[yoursite].com/catalog/index.php
Guest Posted December 5, 2004 Posted December 5, 2004 in all reality what you should do is move your store up one level, so when they go to your domain they are in the store, not via a redirect, as the search engines dont like that much
ErikOS Posted December 5, 2004 Author Posted December 5, 2004 in all reality what you should do is move your store up one level, so when they go to your domain they are in the store, not via a redirect, as the search engines dont like that much <{POST_SNAPBACK}> Work great! :thumbsup:
ScubaDave Posted December 5, 2004 Posted December 5, 2004 this is simple and works save as index.php <? header("Location: http://yourdomain.com/catalog/"); ?> Dave
Guest Posted December 5, 2004 Posted December 5, 2004 this is simple and works save as index.php <? header("Location: http://yourdomain.com/catalog/"); ?> Dave <{POST_SNAPBACK}> can this be used also for setting up 2 domains? eg http://yourdomain.com http://yourdomain.com.au so when someone connects to yourdomain.com.au they get get taken to http://yourdomain.com or vise versa? also, will the search engines be fine with this? is this still a redirect?
♥Vger Posted December 5, 2004 Posted December 5, 2004 The only form of redirect which search engines do not mind is one from .htaccess in your root directory. e.g. Redirect index.php http://yoursite.com/catalog/index.php Just leave a blank index.php in your root directory, with just opening and closing php tags, and this redirect will push people coming to http://www.yourdomain.com to http://www.yourdomain.com/catalog/index.php Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.