Go Back  HTML Forums - Free Webmaster Forums and Help Forums > TOOLS OF THE TRADE > Website Scripts & Content Management Systems
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 02-11-2008, 08:38 PM
  #1
mercules2178
Novice (Level 1)
 
Join Date: Feb 2008
Posts: 7
iTrader: (0)
mercules2178 is an unknown quantity at this point
.htaccess

I have 1and1 for my host.
I am getting 404 errors when I click on a category.
this is my site:
rachacha.org
this is my .htaccess file:
#
# Only upload if you want to use the Search Engine Friendly urls.
#

RewriteEngine On
RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&sort=([a-z]+) product.php?cid=$1&id=$2&sort=$3 [L]
RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&view=(.*) product.php?cid=$1&id=$2&view=$3 [L]
RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html product.php?cid=$1&id=$2 [L]
RewriteRule ^product-([0-9]+)/.*.html&sort=(.*) product.php?cid=$1&sort=$2 [L]
RewriteRule ^product-([0-9]+)/.*.html&view=(.*) product.php?cid=$1&view=$2 [L]

RewriteRule ^product-([0-9]+)/.*.html product.php?cid=$1 [L]
RewriteRule ^listing-([0-9]+)/.*.html listing.php?sid=$1 [L]

PLEASE HELP!
mercules2178 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-11-2008, 08:58 PM
  #2
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 17,350
iTrader: (0)
Horus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of light
This is the URL I get from your link:
http://rachacha.org/product-23/Communications.html

now, there doesn't seem to be rule that that would match...

try replacing:
Code:
RewriteRule ^product-([0-9]+)/.*.html product.php?cid=$1 [L]
with
Code:
RewriteRule ^product-([0-9]+)/*.html product.php?cid=$1 [L]
__________________
New Photo Gallery: Modus InOperandi
Personal Blog: HorusKol
Articles on Programming and Development (PHP/HTML/CSS, C/C++, more): RandomTweak
Horus_Kol is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-11-2008, 09:15 PM
  #3
mercules2178
Novice (Level 1)
 
Join Date: Feb 2008
Posts: 7
iTrader: (0)
mercules2178 is an unknown quantity at this point
no luck with that
mercules2178 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-12-2008, 12:27 AM
  #4
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 17,350
iTrader: (0)
Horus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of light
sorry - i don't know what I was thinking about then... what I told you was dumb... sorry

anyway - i have had problems with 1&1 and rewrite rules before... didn't really get them resolved... I can't help right now - I'm at the office, and my notes on this are at home - will try and post back when I'm home tonight.
__________________
New Photo Gallery: Modus InOperandi
Personal Blog: HorusKol
Articles on Programming and Development (PHP/HTML/CSS, C/C++, more): RandomTweak
Horus_Kol is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-12-2008, 02:37 PM
  #5
mercules2178
Novice (Level 1)
 
Join Date: Feb 2008
Posts: 7
iTrader: (0)
mercules2178 is an unknown quantity at this point
thanks

Just let me know when you are available!
mercules2178 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-13-2008, 05:49 PM
  #6
mercules2178
Novice (Level 1)
 
Join Date: Feb 2008
Posts: 7
iTrader: (0)
mercules2178 is an unknown quantity at this point
this is the working result

#
# Only upload if you want to use the Search Engine Friendly urls.
#
Options +FollowSymLinks
RewriteBase /
RewriteEngine On
RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&sort=([a-z]+) product.php?cid=$1&id=$2&sort=$3 [L]
RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&view=(.*) product.php?cid=$1&id=$2&view=$3 [L]
RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html product.php?cid=$1&id=$2 [L]
RewriteRule ^product-([0-9]+)/.*.html&sort=(.*) product.php?cid=$1&sort=$2 [L]
RewriteRule ^product-([0-9]+)/.*.html&view=(.*) product.php?cid=$1&view=$2 [L]

RewriteRule ^product-([0-9]+)/.*.html product.php?cid=$1 [L]
RewriteRule ^listing-([0-9]+)/.*.html listing.php?sid=$1 [L]
mercules2178 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-13-2008, 08:13 PM
  #7
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 17,350
iTrader: (0)
Horus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of light
glad you got it working - and sorry i wasn't much help...

so, this is the difference?
Code:
Options +FollowSymLinks
RewriteBase /
__________________
New Photo Gallery: Modus InOperandi
Personal Blog: HorusKol
Articles on Programming and Development (PHP/HTML/CSS, C/C++, more): RandomTweak
Horus_Kol is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 06:57 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.