Urgent : Apache Mod_rewrite Testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All ,

 I am using below code in Mandriva 2008 Apache :

// Following is the sample code in .htaccess file.

 

Options +FollowSymlinks

RewriteEngine on

 

RewriteRule ^memory/(.+)-(.+)-(.+)/$
scripts/sortPriceShip.php?modelName=$1&sortSize=$2&shipping=true [nc]

RewriteRule ^memory/(.+)-(.+)/$
scripts/sortModelDetails.php?modelName=$1&sortSize=$2 [nc]

RewriteRule ^memory/(.+)/$ scripts/modelDetails.php?ids=$1 [nc]

 

RewriteRule ^crucialtech/$ scripts/crucialLowestPrice.php?vid=$1 [nc]

RewriteRule ^1800/$ scripts/1800LowestPrice.php?vid=$1 [nc]

 

ErrorDocument 404 http://www.mandriva_apache_site.com

ErrorDocument 500 http://www.mandriva_apache_site.com
<http://www.ramseeker.com/>

 

// End the sample code in .htaccess file.

In this file the meaning of code is as follows:

 

- RewriteRule ^crucialtech/$ scripts/crucialLowestPrice.php?vid=$1 [nc]

 

If  I will use the URL http://www.mandriva_apache_site.com/crucialtech/
<http://www.ramseeker.com/crucialtech/> in browser, that will show in
browser but will call the following page internally.

http://www.mandriva_apache_site.com/scripts/crucialLowestPrice.php?vid=4
<http://www.ramseeker.com/scripts/crucialLowestPrice.php?vid=4> or
http://www.mandriva_apache_site.com/scripts/crucialLowestPrice.php?vid=6
<http://www.ramseeker.com/scripts/crucialLowestPrice.php?vid=6>  ( $1
will be any number ).

 

Same for if I use URL http://www.mandriva_apache_site.com/1800/
<http://www.ramseeker.com/1800/> in browser it will call

http://www.mandriva_apache_site.com/scripts/1800LowestPrice.php?vid=6
<http://www.ramseeker.com/scripts/1800LowestPrice.php?vid=6>   etc


But Now problem is this Functionality Is Not working inside Mandriva
2008 Apache installed via Howtoforge site .

Kindly help me what i need todo in httpd.conf file , there already
Loadmodule done for mod_rewrite

Kindly let me know how can i test this things .

Thanks to All of you !!!!

-- 
=======================================================
With Best Regards

Mr.Shailesh Bhutada
=======================================================


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux