Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi, i tried to installed SEO Site map..

 

and i follow the instruction very carefully... and i tried those test page as instructed...

those page link works, and i did see all my products links

 

 

 

everything seems ok.. just one problem is that

when i edit sitemap.js... replace my http://www.mydomain.com/subdir/index.php

and remove the //

from

//	eval(str1+str2+str3);

to

	eval(str1+str2+str3);

 

and

	var str3="ace('')";

to

	var str3="ace('http://www.mydomain.com/subdir/index.php')";

 

and my htaccess is

RewriteEngine on
Options +FollowSymlinks
DirectoryIndex index.html index.php
AddType application/x-httpd-php php php4 php3 html htm
RewriteRule ^sitemap_categories.html$ sitemap_categories.php [L]
RewriteRule ^sitemap_products.html$ sitemap_products.php [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5_$6 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2 [L]
RewriteRule ^category_([1-9][0-9]*)\.html$ index.php?cPath=$1 [L]
RewriteRule ^product_([1-9][0-9]*)\.html$  product_info.php?&products_id=$1 [L]

 

when i go to http://www.mydomain.com/subdir

it pop up a save file dialog

if i go by http://www.mydomain.com/subdir/index.html

then it shows two bog.. if i mouse over the box, it would have a link...

http://</sitemap_products.html

the other is

http://</sitemap_categories.html

when i click on it go to this

http://%3C/sitemap_products.html

and it wont redirect to my http://www.mydomain.com/subdir/index.php..

it just stay blank with two small box...

 

------------ so i check my htaccesss.... i added this line

 

rewritebase /subdir/ ( for my subdir name as "shop" )

 

it still dont work

 

and the instruction of htaccess have <directory> your directory

if i include <directory> in my htaccess file when i go to http://www.mydomain.com/subdir/index.html

it will return internal server error code...

that why i tried rewritebase /subdir/

but it never work... for redirecting... to index.php

 

can any one help me how to resolve this?

 

thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...