August 17, 2020

How to set up htaccess to use a parked domain as itself

The problem: You pay for hosting of one domain but you would also like to serve other domains that you have parked there, their files being in subdirectories of the account domain.

The solution: I can only vouch for my experience with Apache, where what is working for me is:

1. In the htaccess file of your account domain:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^.*parkeddomain\.com
    RewriteRule ^(.*)$ /parkeddomain/$1 [L]

2. In the htaccess file of your parked domain:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^.*parkeddomain\.com
    RewriteCond %{REQUEST_URI} \/parkeddomain\/
    RewriteRule ^(.*)$ http://www.parkeddomain.com/$1 [R=301,L]

Brief explanation: The first instruction rewrites the requests for your parked domain to the appropriate subdirectory. That would appear to be enough, but the files in that subdirectory can also be loaded by the account domain and any other parked domain if the path is designated, i.e., http://accountdomain.com/parkeddomain/ and http://parkeddomain2.com/parkeddomain/. So the second instruction prevents this by redirecting the requests for the subdirectory back to the parked domain if they are for any other domain.

Note: Any subdirectory of the parked domain that has the same name as a subdirectory of the account domain, such as “image”, must also have an htaccess file with the directive “RewriteEngine on”. And remember while testing to use your browser’s developer tools to disable caching.

August 15, 2020

I dTír Strainséartha le Liam Mac Cóil

Tar éis seachtain ar muir idir Gallaimh is Briostó, caitheann Lúcás trí lá (dhá oíche) i Sasana, ag déanamh trí éalu drámatúil, dhá cheann acu leis an gcuidiú cailín. Tagann Lúcás póg ar leiceann an chéad cheann, agus tagann an dara cailín póg ar leiceann Lúcáis.

Nuair a baineann Lúcás Briostó amach, foghlaimíonn sé go bhfuil “pursuiveant” ann sa tóir air. Agus ansin, tá sé soiléir go bhfuil an tSionnach ann freisin, duine ó thuaisceart na hÉireann a tugadh rabhadh do Lúcas faoi.

Tá go leor eachtraí ar siúl, ar ndóigh, agus polaitíocht, agus iomad daoine suimiúla, ach tá diamhair ann chomh maith, níos mó is níos mó mar théann Lúcás níos faide isteach an tír.

[Bhí an leabhar foilsithe ag Leabhar Breac]
[An chéad leabhar sa tsraith: An Litir]
[An triú leabhar sa tsraith: Bealach na Spáinneach]

July 11, 2020

U.S. Wars by President Since 1981

Ronald Reagan:
Gulf of Sidra encounter (Libya) (1981)
Multinational Intervention in Lebanon (1982–1984)
Invasion of Grenada (1983)
Action in the Gulf of Sidra (Libya) (1986)
Bombing of Libya (1986)
Tanker War – Persian Gulf (Iran) (1987–1988)

George H.W. Bush:
Tobruk encounter – Mediterranean Sea (Libya) (1989)
Invasion of Panama (1989–1990)
Gulf War – Kuwait (1990–1991)
Iraqi No-Fly Zone Enforcement Operations (1991–2003)
First U.S. Intervention in the Somali Civil War (1992–1995)
Bosnian War (1992–1995)

Bill Clinton:
Intervention in Haiti (1994–1995)
Kosovo War (1998–1999)
Operation Infinite Reach – Sudan and Afghanistan (1998)

George W. Bush:
War in Afghanistan (2001–present)
2003 invasion of Iraq
Iraq War (2003–2011)
War in North-West Pakistan (2004–present)
Second U.S. Intervention in the Somali Civil War (2007–present)

Barack Obama:
Operation Ocean Shield – Indian Ocean (Somalia) (2009–2016)
International intervention in Libya (2011)
Operation Observant Compass – Uganda (2011–2017)
American-led intervention in Iraq (2014–present)
American-led intervention in Syria (2014–present)
Yemeni Civil War (2015–present)
American intervention in Libya (2015–present)

Donald Trump:


(source: https://en.wikipedia.org/wiki/List_of_wars_involving_the_United_States)