Live Scores
Shareware
Movie Stars
Programming
Multimedia
Mobile
Database
Enterprise
in
Search Engines
Internet / Email
(Entire Site)
Questions and answers to issues related to Software: Business, Database, Firewalls, Office, Graphics, Security, System, Server.
»
Internet / Email
»
Search Engines
»
htaccess redirect wildcard
htaccess redirect wildcard
I have an old site that is indexed in Google and would like anything that was under the path below to redirect:
oldsite.com/NewsEvents/Pre
ssReleases
detail/
(so for example there were several pages under this path like:)
oldsite.com/NewsEvents/Pre
ssReleases
detail/tab
id/348/Def
ault.aspx
oldsite.com/NewsEvents/Pre
ssReleases
detail/tab
id/347/Def
ault.aspx
oldsite.com/NewsEvents/Pre
ssReleases
detail/tab
id/302/Def
ault.aspx
to now go to:
newsite.com/news-and-event
s/press-re
leases
how would I do this with htaccess?
Solution: htaccess redirect wildcard
I was able to do this:
RedirectMatch 301 ^/NewsEvents/(.*)
http://
domian.com/news-and-events
/press-rel
eases
this way whatever was under NewsEvents goes to the new page
Popular Tags
Tags:
access
cache
domain name
engine
Firefox
google
Google Maps
google search
how
html
IE
index
indexing
internet
Internet Explorer
Microsoft
mysql
php
redirect
search
search engine
search engine optimization
Search Engines
SEM
SEO
url
Web
Website
yahoo
Browse All Tags