Jump to content
MDDHosting Forums

Htaccess and wordpress problems


chulbuli

Recommended Posts

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. :(

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...