Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Apache (Mod ReWrite issue) for SEO url (help!)
Old 11-20-2009, 01:37 AM Apache (Mod ReWrite issue) for SEO url (help!)
Junior Talker

Posts: 2
Name: Lyle
Trades: 0
Hi
I believe this is in the correct forum. If not, please move.
So I have edited my HTaccess file to look like the following:

Code:
Options +FollowSymlinks All -Indexes
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} !^(www.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


RewriteRule ^jdm-parts-detail-([0-9]+)-(.*)\.html$ product-details.php?ID=$1 [L]

RewriteRule ^jdm-parts-listing-([A-Za-z]+)-([A-Za-z]+)-(.*)\.html$ parts-listing.php?SearchMakeID=$1&SearchModelID=$2&SearchYear=$3 [L]

RewriteRule ^jdm-parts-package-([A-Za-z]+)-([A-Za-z]+)-(.*)\.html$ package-details.php?SearchMakeID=$1&SearchModelID=$2&SearchYear=$3 [L]

RewriteRule ^jdm-parts-search-(.*)\.html$ parts-listing.php?PartsNo=$1 [L]
This SHOULD be working. In other words, I should be able to type in the following:
http://www.url.com/jdm-parts-listing-5-21-1991.html
and it should work.
It keeps producing a 404 error though. What am I missing or doing wrong?

The first part is simply to forward anyone going to http://url.com to www.url.com

So I need the following:
http://bit.ly/3hxiM3 (click link)

to turn into this:
http://bit.ly/Wyx5t (click link)

Any thoughts?
e2tango is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-20-2009, 04:21 AM Re: Apache (Mod ReWrite issue) for SEO url (help!)
Junior Talker

Posts: 2
Name: Lyle
Trades: 0
Actually looks like I figured out the problem.

Some how I managed to use the ([A-Za-z]+) where I should have been using ([0-9]+) WOOPS!
e2tango is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Apache (Mod ReWrite issue) for SEO url (help!)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15554 seconds with 12 queries