Jump to content

Rewrite doesn't work


Deks

Recommended Posts

Hello guys,

 

i have problem trying to do rewrite url. Am new in this so i tried reading lots of forums, articles and nothing didn't help me.

Url is : http://localhost/test2/test.php?id=1 (using xampp for testing) and i want to see only http://localhost/test2/id .

 

I changed my .htaccess to :

Options +FollowSymLinks

RewriteEngine On

RewriteRule ^test2/id$ /test2/test.php?id=1 [L]

(code i generated with some online generator)

 

Also i changed all necessary lines in \xampp\apache\conf\httpd.conf like :

LoadModule rewrite_module modules/mod_rewrite.so

AllowOverride All

 

...but like i told nothing happens.  :shrug:

 

Hope someone will find out solution for my problems. Thx lot.  :)

 

Link to comment
Share on other sites

I get everything same, like i never try change it. Dunno what to do to get some results. If someone have some experiance with this and have some advice for me it would be great.

Like cags said, you have to change the links yourself. mod_rewrite won't do that for you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.