advanced rewrite help
-
So, I deleted my old site, and am now using wordpress as a content management system at nathanielstern.com (ignore the “blog” – there are actually two wordpress installs, and i am talking about for the main site here).
I’m trying to clean up my root folder a bit, and am having trouble with the rewrite rules. Basically, i want to do a few things like this:
RedirectPermanent /images/ https://nathanielstern.com/media/old-images/ RedirectPermanent /works/ https://nathanielstern.com/art/descending/
They work great but I have a major problem: I have add-on domains that are effected negatively by these rules!
So I was hoping someone could help me with rewrite rules that will only effect the main domain?
The guys at my host suggested something like the following, but they don’t work, and I don’t understand them at all, and they won’t help me any further…
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)nathanielstern\.com RewriteRule ^images$ https://nathanielstern.com/media/old-images/ [R=301,L]
Please help? Thanks,
nathaniel
- The topic ‘advanced rewrite help’ is closed to new replies.