SonicAndy Posted October 13, 2005 Share Posted October 13, 2005 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 +FollowSymLinksRewriteEngine 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 More sharing options...
♥Vger Posted October 13, 2005 Share Posted October 13, 2005 Try this instead: Options +FollowSymlinks Options +SymlinksIfOwnerMatch RewriteEngine on RewriteBase /catalog/ Vger Link to comment Share on other sites More sharing options...
SonicAndy Posted October 13, 2005 Author Share Posted October 13, 2005 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 More sharing options...
double_d77 Posted November 6, 2005 Share Posted November 6, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.