Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ultimate SEO URLs (Problem)


SonicAndy

Recommended Posts

Hello,

Having a small problem with this contrib. I have added the code to the relevant php files and it seems to be fine in the admin area but when I try to use the site, it crashes but shows up html in the address bar. I made an .htaccess file using notpad (Is this the problem?) The php looks fine but I wasn't sure if the .htaccess file is the error. I put it in the site.co.uk/catalog/ folder.

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

 

Any ideas?

Thanks for your time

Andy

Link to comment
Share on other sites

I add the .htaccess file to my ftp but it disappears. I create it in Notepad and save it as .htaccess and it looks like a notepad file (As I made it in notepad) but I add it to the directory but when I refresh it goes.

 

Any idea why?

 

Tried that but it still crashed.

 

I add the .htaccess file to my ftp but it disappears. I create it in Notepad and save it as .htaccess and it looks like a notepad file (As I made it in notepad) but I add it to the directory but when I refresh it goes.

 

Any idea why?

 

Is it something to do with (Linux based server capable of mod_rewrite ) I am unsure if my server (names.co.uk) can do mod_rewrite. I tried to message CHEMO (The person that made the contrib) but his inbox is full.

Link to comment
Share on other sites

  • 4 weeks later...
I add the .htaccess file to my ftp but it disappears. I create it in Notepad and save it as .htaccess and it looks like a notepad file (As I made it in notepad) but I add it to the directory but when I refresh it goes.

 

Any idea why?

 

Tried that but it still crashed.

 

I add the .htaccess file to my ftp but it disappears. I create it in Notepad and save it as .htaccess and it looks like a notepad file (As I made it in notepad) but I add it to the directory but when I refresh it goes.

 

Any idea why?

 

Is it something to do with (Linux based server capable of mod_rewrite ) I am unsure if my server (names.co.uk) can do mod_rewrite. I tried to message CHEMO (The person that made the contrib) but his inbox is full.

 

In your FTP make sure that when you log in you set the view menu to show hidden files! it should be there then.

You might also need to configure your htpd.conf file. See host for this if you can't find it. As in this file is a coupld of lines that can stop the mod-rewrite module altogther and these will need un-commenting

 

Dave

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...