Dynadot

.htaccess question

Spaceship Spaceship
Watch

TWM

Web Marketing SpecialistEstablished Member
Impact
9
How would i combine

RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^index\.html$ "http\:\/\/avda-tx\.org\/v2" [R=301,L]
RewriteRule ^/?$ http://avda-tx.org/v2 [R=302,L]

with a bunch of other 301 redirects?

I basically want to make sure that all traffic to domainname.com and www.domainname.com go to www.domainname.com/v2 but also want to make sure that domainname.com/page1 will go straight to domainname.com/v2/page1 if they happen to type in a specific URL.

Thanks for the help.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back