/    Sign up×
Community /Pin to ProfileBookmark

SE friendly URLs with Apache troubles

Hello

I’m trying to follow a tutorial i found on SEOmoz ([url]http://www.seomoz.org/ugc/using-mod-rewrite-to-convert-dynamic-urls-to-seo-friendly-urls[/url])

However i’m having trouble getting anything server by my webserver other than “404 page not found.”

in my .htaccess file which is in my site root dir is as follows:

[CODE]RewriteEngine On
RewriteRule /(.*)/(.*)/$ bikespec.php?category=$1&product=$2[/CODE]

I’ve placed the file “bikespec.php” into the root of my site also,

I’m trying the url: [url]www.site.com/bikes/testbike[/url]
(replacing site.com with my actual site.)

But like i said above, all i get is 404’s Can anyone help?

to post a comment
SEO

1 Comments(s)

Copy linkTweet thisAlerts:
@BFTrickOct 28.2009 — Hi there,

I see this post is a little bit late, hopefully it can still help you.

I am not an expert with .htaccess but here is a snippet of some of my htaccess code:
[CODE]RewriteRule ^service-center/appointment/([0-9]+)/$ /service-center/appointment.php?CouponID=$1[/CODE]

try using the ^ character instead of the / in the first part of the rewrite rule. Good luck.
×

Success!

Help @copes spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...