no luck at doing this :/

New to mod_rewrite? This is a good place to start.

no luck at doing this :/

Postby gnagis » Mon Aug 17, 2009 9:29 am

hello all!
im realy lost here first time im trying this and i have been using bing all day long looking at difrent examples and so on and so far my .htaccess file looks like this:

Code: Select all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/([a-z]{1})/([0-9]{2})$ /index.php?page=$1&id=$2 [L]


this does exactly nothing when trying url

what i want is:
index.php?page=produkt&id=1 to instead be like /produkt/1

am i missing something?
ohh and everything is activated on apache and so on (it works on wordpress and so on when trying on that)
gnagis
 
Posts: 1
Joined: Mon Aug 17, 2009 9:22 am

Postby richardk » Tue Aug 18, 2009 4:10 pm

Try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^produkt/([0-9]+)/?$ /index.php?page=produkt&id=$1 [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 27 guests

cron