Mosets Mosets Help Hot Property Redirecting property links from 1.0 Beta 4 to 1.0 Beta 5
Can't find what you're looking for? Search the forum.

Redirecting property links from 1.0 Beta 4 to 1.0 Beta 5

The URL of property's details page has changed in 1.0 Beta 5. The old URL in 1.0 Beta 4 would look like this:

http://www.example.com/real-estate?view=property&id=103


while the new URL in 1.0 Beta 5 looks like this:

http://www.example.com/real-estate?view=properties&id=103

You can add the following rule to your site's .htaccess file to redirect the old URLs to the new one:
RewriteCond %{QUERY_STRING} ^view=property&id=(.+)$
RewriteRule ^real-estate$ http://www.example.com/real-estate?properties&id=%1 [R=301,L]
Copyright © 2014 Mosets. All rights reserved.