php - 301 redirects of subpages -


there lots of questions these redirects didn't worke me.

we moving site domain , redirect links new domain, including sub pages.

i'm using hostgator made 301 redirect cpanel front page goes new domain www.etilerprep2go.com --> www.iqworldinc.com etilerprep2go.com --> www.iqworldinc.com

but need subpages redirect because of google ranks etc. mean want link http://www.etilerprep2go.com/egitimlerimiz-etiler-ingilizce-kursu/ should go http://www.iqworldinc.com/egitimlerimiz-etiler-ingilizce-kursu/

well couldn't manage that. @ moment code looks @ end of htaccess:

    rewritecond %{http_host} ^.*$     rewriterule ^(.*)$ "http\:\/\/www\.iqworldinc\.com\/$1" [r=301,l] 

any advice how that?

thanks in advance.

edit: managed adding categories , other pages manually as;

    options +followsymlinks     rewriteengine on     redirectmatch ^/$ http://www.iqworldinc.com     redirect 301 /hakkimizda-etiler-levent-ingilizce-kursu http://www.iqworldinc.com/hakkimizda-etiler-levent-ingilizce-kursu     redirectmatch 301 ^/egitimlerimiz-etiler-ingilizce-kursu/(.*)$ http://www.iqworldinc.com/egitimlerimiz-etiler-ingilizce-kursu     redirectmatch 301 ^/etiler-ingilizce-kursu-iletisim/(.*)$ http://www.iqworldinc.com/etiler-ingilizce-kursu-iletisim     redirectmatch 301 ^/etiler-ingilizce-kursu-haberler/(.*)$ http://www.iqworldinc.com/etiler-ingilizce-kursu-haberler/     redirectmatch 301 ^/etiler-is-ingilizcesi/(.*)$ http://www.iqworldinc.com/etiler-is-ingilizcesi/     redirectmatch 301 ^/etiler-ielts-kursu/(.*)$ http://www.iqworldinc.com/etiler-ielts-kursu/ 

but still wonder there way pages in codeline.

this transfer vistitors , seo

rewriteengine on rewritecond %{http_host} etilerprep2go.com rewriterule ^(.*)$ http://www.iqworldinc.com/$1  [r=301,l] 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -