Altrea wrote:Hi,
can you give an example of what you want to have?
Old URL: ...
New URL ...
And how your folder structure on your server would look like?
Hi,
Thank you for responding.
Here is the information that you requested:
Old url would be:http://www.websitename.com/index.php?output=product&productid=3217&categorypath=111_142&page=4
output=product means that a product and it's associated information is being displayed.
productid=3217 is the product id for product called "yellow golf shirt".
categorypath=111_142 consists of two categories. Category 111 is the parent category called "clothing". Category 142 is the child category called "men".
New Url would be: http://www.websitename.com/product/3217/category/111/142/page/4/clothing/men/yellow-golf-shirt.html
or it could be like this:
New Url would be:http://www.websitename.com/product-3217/category-111-142/page-4/clothing/men/yellow-golf-shirt.html
Question:The New format of the url must replace the old url format of all links that appear in the content of a web page.
Is it possible to rewrite all instances of urls in the body content of a website page using .htaccess rules?In my research I have come across "mod_rewrite", "mod_proxy_html", "mod_substitute", and "mod_sed". I honestly do not know what is the best or only option to rewrite the urls that appear in the content of a web page.
I look forward to your response.
Kind Regards,
Mike