Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where is the URL rewrite to www prefix?


haggisv

Recommended Posts

I run my OScommerce store here:

http://oneofakindtrading.com.au/Shop

 

For SEO purposes I have tried to be consistant with my URLs, so I have tried to make ALL my URLs WITHOUT the www prefix. I have changed both config.php files and remove all the ww references. My .htaccess files do NOT do any rewrites of any kind.

 

Now it's all working EXCEPT the homepage of the shop with the ULR above. It always adds the www prefix, whereas all my subpages have URLs without the www.

 

Can anyone suggest WHERE this rewrite occurs and how I can get rid of it?

 

Thanks a lot!

Link to comment
Share on other sites

My installation is virtually the standard one, with only a few mods but very simple ones, not related to the URLs. I DO have the SE friendly URLs swithced ON in admin.

 

Can someone please suggest whereI can start looking for the problem?

 

Thanks a lot!

Link to comment
Share on other sites

I'd check with the host ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Thanks for the reply.

 

Since I never requested any redirects from the host, and this is the only page in my domain that does this, I do not expect it to be something they did. Since they are not usually all that helpful I was hoping to resolve this myself, but i guess it does not hurt to ask.

 

Not that the OScommerce shop is in a subdirectly called 'Shop', and neither the root or any of the other pages in the shop exibit this behavior.

 

Hope someone can help

 

Cheers!

Link to comment
Share on other sites

sorry, overlooked root does not do it.

 

check includes/local folder, any extra config files there?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

sorry, overlooked root does not do it.

 

check includes/local folder, any extra config files there?

 

Thanks for replying!

 

I checked that folder, there is only one file there called .cvsignore, which has a single statement in it:

configure.php

 

Is there any way of tracking when/where the change in url occurs?

 

Thanks again for your time!

Link to comment
Share on other sites

Apache sends a 301 redirect to add a trailing slash.

http://httpd.apache.org/docs/1.3/misc/FAQ-...#set-servername

 

You can avoid it like this.

 

http://oneofakindtrading.com.au/Shop/

 

or better yet always include a page.

 

http://oneofakindtrading.com.au/Shop/index.php

 

And you can ask your host to change the redirect s www.oneofakindtrading.com.au 301 rediects to oneofakindtrading.com.au

Link to comment
Share on other sites

Yes, that's it! Thank you for the information!

 

For SEO purposes I'm trying to be consistant and only have links with exactly the same URL, ie

www.oneofakindtrading.com.au/Shop

www.oneofakindtrading.com.au/Shop/

oneofakindtrading.com.au/Shop

oneofakindtrading.com.au/Shop/

 

Should all be the same. I had chosen the 3nd one. I don't know if Search engines distinguish between the 3rd and 4th ones.

 

I would prefer not to add the index.php to the url since this would create another url to the same page, and all the page rank of the page would be ahred among the different version.

 

I think it will be easiest to just change all my references to version 4.

 

Any thoughtS!

 

Thanks a lot!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...