Jump to content


Photo

Htaccess and wordpress problems

htaccess wordpress

  • Please log in to reply
1 reply to this topic

#1 chulbuli

chulbuli

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 July 2013 - 02:54 PM

I wanna redirect all my wordpress pages from one domain to another, such as:

from:
http://domain1.com/page/

to:
http://domain2.com/page/

So I added to htaccess of domain1.com:
RewriteRule (.*)$ http://www.domain2.com\/$1
[R=301,L]

But I want to make certain files exceptions to the above rule, so I also added:

RewriteCond %{REQUEST_URI} ^(images|javascripts|stylesheets|css|images-globa|js-global|js|htm|html).*

but the second rule doesn't seem to work. :(

 


  • 0

#2 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,889 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 22 July 2013 - 06:44 PM

I saw this thread so I checked for similar tickets.  I did make a response in your ticket that should help you.


  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users