skip to Main Content

WordPress/Apache rewrite/redirect rule and regex

I need to do some apache rewrite/redirect rules to external webservice in case of 404 error for specific file extensions: .jpg, .png, etc. Wordpress is used here. So, if 404 occurs at: https://test.com/folder/subfolder/year/month/filename.jpg I want to redirect it to: https://test1.com/folder/subfolder/year/month/filename.jpg…

VIEW QUESTION

Apache rewrite rule help, strange results

I am going in circle on this. RewriteRule ^Homes-by-price Real-Estate-Listings.php?minPrice=0&maxPrice=999999999 [NC,L] RewriteRule ^Homes-by-price/([0-9]+) Real-Estate-Listings.php?minPrice=0&maxPrice=$1 [NC,L] The first line works. When I enter /Homes-by-price and get the page showing Real-Estate-Listings.php?minPrice=0&maxPrice=999999999 But when I type in /Homes-by-price/100000 I should get Real-Estate-Listings.php?minPrice=0&maxPrice=100000 Instead…

VIEW QUESTION
Back To Top
Search