Hi there,
I need to redirect pages from a sub-directory to the root directory of a new website with different domain name, host and site structure.
I can't get the htaccess file to work for me. The htaccess file did have a Rewrite base/subdirectory which I deleted because it may be in conflict.
It looks like this...
php_value post_max_size 40M
php_value upload_max_filesize 40M
### SILVERSTRIPE START ###
<Files *.ss>
#Order deny,allow
#Deny from all
#Allow from 127.0.0.1
Require valid-user
</Files>
RewriteEngine On
RewriteBase /
Redirect 301 subdirectory/ http://www.newdomainname.com.au
Redirect 301 subdirectory/page1 http://www.newdomainname.com.au/newpageurl
etc etc
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* ss.php?url=%1&%{QUERY_STRING} [L]
#php_value memory_limit 128M
### SILVERSTRIPE END ###
#<Location /webdav>
#RewriteEngine Off
#</Location>
Would appreciate your help immensely! Thanks.