rajoo_sharma
asked on
URL rewriting - LAMP
Hi,
There is a PHP script for my requirement, unfortunately it is without URL rewriting implementation. So it appears something like:
http://www.mydomain.com/category.php?id=1
or
http://www.mydomain.com/product.php?id=1
My Apache installation supports mod_rewrite and I'm comfortable with LAMP development. Please provide a link so that I can implement URL rewriting for the same and it should appear as:
Category Page URL as:
http://www.mydomain.com/electronics
or Product Page URL as:
http://www.mydomain.com/electronics/universal-remote
Its an hypothetical example and I'll implement the same for its article (text) management as well.
Thanks
There is a PHP script for my requirement, unfortunately it is without URL rewriting implementation. So it appears something like:
http://www.mydomain.com/category.php?id=1
or
http://www.mydomain.com/product.php?id=1
My Apache installation supports mod_rewrite and I'm comfortable with LAMP development. Please provide a link so that I can implement URL rewriting for the same and it should appear as:
Category Page URL as:
http://www.mydomain.com/electronics
or Product Page URL as:
http://www.mydomain.com/electronics/universal-remote
Its an hypothetical example and I'll implement the same for its article (text) management as well.
Thanks
Some useful learning resources here:
http://en.wikipedia.org/wiki/Rewrite_engine
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.2/rewrite/
You will also want to understand this:
http://httpd.apache.org/docs/2.2/rewrite/intro.html#regex
http://en.wikipedia.org/wiki/Rewrite_engine
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.2/rewrite/
You will also want to understand this:
http://httpd.apache.org/docs/2.2/rewrite/intro.html#regex
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys, and apologies for not responding on time.
I'll go through it and get back to you.
Regards
I'll go through it and get back to you.
Regards
I've requested that this question be deleted for the following reason:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.
If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.
Use the specific format https:#axxxxxxxx for comment ID(s).
Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.
Experts-Exchange Auto Deleter
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.
If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.
Use the specific format https:#axxxxxxxx for comment ID(s).
Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.
Experts-Exchange Auto Deleter
Looks like the EE_AutoDeleter cannot identify valid responses. In particular there is a link here to an E-E Awarded Article that covers this question in detail! Suggest the EE_AutoDeleter be shut down until it can be reworked to take into account things like this.
Please see: #a35314735 which refers to this article:
https://www.experts-exchange.com/articles/4043/URL-Aliasing-Redirection-Rewriting-and-Reverse-Proxying-using-Apache-HTTPD.html
Please see: #a35314735 which refers to this article:
https://www.experts-exchange.com/articles/4043/URL-Aliasing-Redirection-Rewriting-and-Reverse-Proxying-using-Apache-HTTPD.html
Open in new window