CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 1831|Reply: 0

htaccess redirection

[Copy link]
Post time 7-9-2011 01:54 PM | Show all posts |Read mode
saya ada dua bahagian blog
  • lomotech.com/blog
  • lomotech.com/lens

dan saya baru merge semua entri dalam lomotech.com/lens kepada lomotech.com/blog
soalnya sekarang, bagaimana saya nak buat redirection terus ke /blog guna htaccess
semua entri yang merge itu jika orang masuk guna link /lens

eg
link asal: lomotech.com/lens/2011/haha
redirect ke link lomotech.com/blog/2011/haha

dah try guna


  1. RewriteCond %{HTTP_HOST} ^lomotech.com$ [OR]RewriteCond %{HTTP_HOST} ^www.lomotech.com$RewriteRule ^lens\/?(.*)$ "http\:\/\/lomotech\.com\/blog$1" [R=301,L]
Copy the Code


tapi hanya jadi untuk link lomotech.com/lens sahaja.
kalau masuk lomotech.com/lens/2011/haha akan keluar err:500

tq

Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

27-12-2024 01:49 AM GMT+8 , Processed in 0.308823 second(s), 13 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list