Jump to content

Archived

This topic is now archived and is closed to further replies.

nero

How to make myurl.com/ easily redirect to myurl.com/catalog/

Recommended Posts

That's a permanent redirect. I've been told that the search engines have no problem with those.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites
I used the index.php:

 

<?

header("Location: catalog/default.php");

?>

 

Does anyone know if this is bad for the search engines? I really dont want to have to do the dir move. I have html descriptions with pics, and every one would have to be changed.

Len

 

----- =

Hi Len,

 

I did this too, but I get 404 trying to get to my admin. Any other file I should modify?

 

TIA.

Maria

Share this post


Link to post
Share on other sites

I had problems accessing my admin. So, I am doing the following now:

 

My catalog is not under root

I have an .htaccess in root, to which I added the line:

 

DirectoryIndex default.php /catalog/default.php

 

This will make www.myurl.com --> www.myurl.com/catalog

 

It works fine and no problem with search engines, spiders, etc.

 

Hope this helps someone else.

 

Maria

Share this post


Link to post
Share on other sites
I had problems accessing my admin. So, I am doing the following now:

 

My catalog is not under root

I have an .htaccess in root, to which I added the line:

 

DirectoryIndex default.php /catalog/default.php

 

This will make www.myurl.com --> www.myurl.com/catalog

 

It works fine and no problem with search engines, spiders, etc.

 

Hope this helps someone else.

 

Maria

 

 

For the osc 2.2 rc2a the

 

DirectoryIndex default.php /catalog/default.php

 

must be modified and look like this:

 

DirectoryIndex index.php /catalog/index.php

 

this can be placed at the end of the existing rows within the .htaccess file (this is a file pleced in the root and is witout name in front of the dot just simply .htaccess If you don't have such a file just open notepad put the line mentiond above in it and save it - be sure to chose all files type NOT TEXT- without a name, just ".htaccess")

Good luck!

 

No others changes are needed! Save the file, upload it and u're done!

Share this post


Link to post
Share on other sites
lol, you found a thread that was started about 6 years ago and decided to answer it?

You can redirect to new page. Use Javascript, redirection. Example below.

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<title>Quality Sunglasses, Clip-on, Polarized, Color Mirror, Night Driving, Computer, Shooting Lenses Eyewear</title>

<script language="JavaScript">

urlstr="http://www.Polarized4U.com/index.php?screenwidth="+screen.width+"&screenheight="+screen.height;'>http://www.Polarized4U.com/index.php?screenwidth="+screen.width+"&screenheight="+screen.height;

alert(urlstr);

window.location.replace(urlstr);

</SCRIPT>

</head>

<BODY>

</BODY>

</HTML>

 

http://www.Polarized4U.com

Share this post


Link to post
Share on other sites

quote name='jasonpham' date='Apr 8 2008, 09:49 PM' post='1232629']

You can redirect to new page. Use Javascript, redirection. Example below.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<title>Quality Sunglasses, Clip-on, Polarized, Color Mirror, Night Driving, Computer, Shooting Lenses Eyewear</title>

<script language="JavaScript">

urlstr="http://www.Polarized4U.com/index.php?screenwidth="+screen.width+"&screenheight="+screen.height;

alert(urlstr);

window.location.replace(urlstr);

</SCRIPT>

</head>

<BODY>

</BODY>

</HTML>

 

http://www.Polarized4U.com

Share this post


Link to post
Share on other sites

No, this should never be used for domain redirection like this. It is performed after the site is loaded in the brwoser so the search engines see it. It can cause the site to not be listed or even banned.

 

Jack

Share this post


Link to post
Share on other sites

×