RewriteRule ^library\ online-marketing/(.*) /strategy/$1 [R=301,NC,L] RewriteRule ^library\ online-marketing/(.*) /strategy/$1 [R=301,NC,L] Redirect 301 /online-marketing/ http://www.domain.com.au/library/strategy RewriteRule ^online-marketing/(.*)$ /strategy/$1 [R=301,NC,L]
RewriteRule ^library/online-marketing/(.*)$ library/strategy/$1 [R=301,NC,L]
Try
RewriteRule ^library/online-marketing/(.*)$ library/strategy/$1 [R=301,NC,L]
RewriteRule ^library/online-marketing/(.*)$ http://yoursite.com/library/strategy/$1 [R=301,NC,L]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mydomain\.com\.au [NC]
RewriteCond %{HTTP_HOST} !^files\.mydomain\.com\.au [NC]
RewriteRule ^(.*)$ http://www.mydomain.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com\.au/index [NC]
RewriteRule ^(.*)$ http://www.mydomain.com.au/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index
RewriteRule ^(.*)index$ http://www.mydomain.com.au/$1 [R=301,L]
Redirect 301 /assets/images http://www.files.mydomain.com.au/images
Redirect 301 /assets/files http://www.files.mydomain.com.au/files
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-varyRedirect 301 /library/online-marketing http://www.markdeangarner.com.au/library/strategy
Redirect 301 /assets/images http://www.files.mydomain.com.au/images
http://www.mydomain.com.au/library/strategy?q=library/online-marketing
RewriteRule http://www.mydomain.com.au/library/online-marketing/(.*)$ http://www.mydomain.com.au/library/strategy/$1 [R=301,NC,L]
http://www.mydomain.com.au/library/strategy?q=library/online-marketing
What is the result you want for the URL?
http://www.mydomain.com.au/library/strategy