Mod_ReWrite issues ....

Status
Not open for further replies.

poppabear

Verified User
Joined
Feb 9, 2007
Messages
11
Hello,
I have recently been trying to use the built in module mod_rewrite with no luck. I have been attempting to figure out the issue for some time now, reading over forums etc .. I have tried everything I can think of, I have recently upgraded to the new version apache thinking that may fix it, I have 2 boxes both with DA installed and working, On 1 of the boxes the rewrite rule works fine, on the other I get nothing from it. Some info on what I am trying to accomplish.

Website url: http://sub.domain.net/index.php?pg=home

Rewrite to: http://sub.domain.net/home.php

Using rewrite rule via .htaccess in subdomain root:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)\.html$ index.php?pg=$1

No errors via logs, the url simply does not rewrite, site still functions …
 
sorry for wasting all of your time and space here

but i am a complete dumbass as i didn't understand fully of the way mod_rewrite worked..

So i was under the impression that the url apon visiting it would "on-the-fly" like redirect to another "masked" url..

after doing a little more research come to find out it just allows your vars value to become the VALUE.php as in like an alias for the origanl url

so after that information i learned after 3 days of trying to debug the issue there was infact no issue to begin with ...

thanks for the time guys
 
Status
Not open for further replies.
Back
Top