Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Now Ive Dont It!


sharplab

Recommended Posts

Posted

I read so much about how having sites like:

 

http://www.site.com

 

AND

 

http://site.com

 

CAN BE CONSIDERED DUPLICATE CONTENT!

 

So I added this to my htaccess:

 

Options +FollowSymlinks

RewriteEngine on

rewritecond %{http_host} ^www\.mysite\.com [nc]

rewriterule ^(.*)$ http://mysite.com/$1 [r=301,nc]

 

 

NOW I cant log onto my admin because the admin needs the www.

Any QUICK EZ Fix?

 

 

Thank You All Soooooo Much!

 

Lelia

Sweet Webmaster

Posted

edit catalog/admin/includes/configure.php AFTER changing the permissions for writable access.

 

find the www in the url config

 

remove the www in the url config

 

save file

 

test

 

alternatively, remove .htaccess file.

 

Good Luck!

 

Thomas

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Posted
edit catalog/admin/includes/configure.php AFTER changing the permissions for writable access.

 

find the www in the url config

 

remove the www in the url config

 

save file

 

test

 

alternatively, remove .htaccess file.

 

Good Luck!

 

Thomas

 

 

Thanks for reply!

 

Just checked file and there are no WWW's anywhere.

Any suggestions besides removing htaccess code?

 

THX !

 

Lelia

Posted

Not trying to beat a dead horse, however make sure you check BOTH configure.php files.

 

/catalog/includes/configure.php

and

/catalog/admin/includes/configure.php

 

Thomas

 

P.S. Other then running grep -r 'www.' * (a linux/unix command string) in the catalog directory at the shell prompt I wouldnt know where else to look. Sorry..

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Archived

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

×
×
  • Create New...