0

Hi,


I am having xampp installed on my windows xp service pack 3 machine.i am trying to do the url rewrting on local system in .htaccess file.but there is no output of the url rewriting.

So i want to know, is url rewriting possible on windows having apache webserver installed?

Please help me.

this is my .htaccess file.

Options +FollowSymLinks
RewriteEngine on
RewriteRule product/categoryid/(.*)/productid/(.*)/ product.php?categoryid=$1&productid=$2
RewriteRule product/categoryid/(.*)/productid/(.*) product.php?categoryid=$1&productid=$2

]

and url that i want to rewrite is

product.php?categoryid=1&productid=10


Thanks

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by jcanaway
0

It is a simple setting in your C:\xampp\apache\conf\httpd.conf file. So first copy the file at that location for a backup. Then load the file at C:\xampp\apache\conf\httpd.conf in notpad to do the following modifications.
1 - Uncomment the following line by removing the # symbol

#LoadModule rewrite_module modules/mod_rewrite.so

change above to below

LoadModule rewrite_module modules/mod_rewrite.so

Then replace all instances of AllowOverride None to AllowOverride All

0

Hi, All
Iam having xampp installed on my windows xp machine.I am trying to do the url rewrting on local system in .htaccess file.but there is no output of the url rewriting.

RewriteEngine On
RewriteRule ^([A-Za-z0-9-]+)/?$ categories.php?name=$1 [L]

I want output like
categories-name/

Plz help

0

Try the following:

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)/?$ categories.php?name=$1
0

hello yes it is but there is a better localhost then xampp it is called wamp it is much better i tried a bunch of them and found wamp as the better localhost but it is possible xampp you but pretty much since the are a few answers that may better suit you so i am just going to give you this advice

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.