Hi there,
I've been searching quite a bit for a solution, but thus far, none of them have worked properly.
I can redirect static urls to static urls just fine, but when I try and redirect an old dynamic url to a static one, it redirects, but it adds the query string to end of the url (i.e. www.nwcolorado.com/? or www.nwcolorado.com/?listingID=201).
I want to redirect:
http://www.nwcolorado.com/NWR_Listingview.php?listingID=201
to:
http://www.nwcolorado.com/
How would I accomplish this?
Also, is there a simple way to do this for all dynamic urls using "NWR_Listingview.php" as the base? Reason I ask is that there are several listings that need to be redirected to the home page.
Here's my htaccess file thus far:
Much thanks in advance.
I've been searching quite a bit for a solution, but thus far, none of them have worked properly.
I can redirect static urls to static urls just fine, but when I try and redirect an old dynamic url to a static one, it redirects, but it adds the query string to end of the url (i.e. www.nwcolorado.com/? or www.nwcolorado.com/?listingID=201).
I want to redirect:
http://www.nwcolorado.com/NWR_Listingview.php?listingID=201
to:
http://www.nwcolorado.com/
How would I accomplish this?
Also, is there a simple way to do this for all dynamic urls using "NWR_Listingview.php" as the base? Reason I ask is that there are several listings that need to be redirected to the home page.
Here's my htaccess file thus far:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 91.74.160.18
RewriteCond %{HTTP_HOST} ^nwcolorado.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nwcolorado.com$
Redirect 301 /NWR_BuyingProcess.php http://www.nwcolorado.com/contact-us/
Redirect 301 /NWR_Buyingsellingtips.php http://www.nwcolorado.com/help-faq/real-estate-tips/
Redirect 301 /NWR_Contactus.php http://www.nwcolorado.com/contact-us/
Redirect 301 /NWR_Localphotogallery.php http://www.nwcolorado.com/local-information/fort-collins-photos/
Much thanks in advance.
