URL rewriting using .htaccess?

For doing that, you will either need the product name to be fetched along with the id in order to use it in the rewrite expression.

For doing that, you will either need the product name to be fetched along with the id in order to use it in the rewrite expression. You might also want to explore RewriteMap where you can map a list of product ids to product names. Obviously, you would do this only if you have a limited number of products.

If the number of products is dynamic and change too frequently, I suggest you retrieve the product name when you retrieve the id.

I'll offer you two approaches. The first will be the simplest. You probably want to use mod_rewrite in Apache.

Then post this question on serverfault.com. Nt: configuration (in your . Htaccess file) will probably be something like: RewriteEngine On RewriteRule ^/product.

Php? Id=(0-9+)$ /productname/$1 The second approach is to have your product. Php script tell the calling browser to load a new URL.To do this consider something like: 0 ) { /* Redirect browser */ header("Location: mydomain.com/productname/$id"); /* Make sure that code below does not get executed when we redirect.

*/ exit; }?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions