Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

RewriteRule url to php (no replies)

$
0
0
I'm running WAMP on a WIndows 7 PC. I have the rewrite_module checked in the Apache modules.

I'm trying to send

/category/testit/12347

to

category_id.php?name=testit&id=12347


category_id.php is in by base directory. The rewriterules are:

RewriteEngine On

RewriteRule ^category/([^/]*)/([\d]+)$ /category_id.php?name=$1&id=$2 [NC,L]

I've tried it with and without the leading /, nothing works. The access.log reports:

::1 - - [28/Sep/2016:13:45:54 -0500] "GET /category/testit/12347 HTTP/1.1" 404 4

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>