Mod rewrite issu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dharprog
Forum Contributor
Posts: 126
Joined: Fri Oct 27, 2006 12:20 am

Mod rewrite issu

Post by dharprog »

Hi All,

I am getting an issue with mod_rewrite like the following.

I have one webserver in our office, in which i have created some virtual hosts and hosted some applications.

When i use the mod_rewrite functionality under those hosted domains as following it is working very fine. but when it comes to with ip address and under different folder the mod rewrite functionality is not working.

Suppose: http://www.example.com/rewrite.php is working fine but when it comes to

http://xxx.xxx.xx.xx/php/rewrite.php is not working for mod rewrite.

Following are the paths of the above applications:

For example.com site it is located at /var/www/example.com

For xxx.xxx.xx.xx/php it is located at /var/www/php/

Can any body tell me what could be the issue with this and why the mod rewrite functionality is not working.

I have searched lot for this but i could not find any feasible solution.

So please kindly guide me to fix this issue on the webserver and it has to work for all the directories under /var/www/

If you have any questions do let me know.

Thanks and regards,
Dharprog
Post Reply