htaccess

Ajabbi.com now has a draft website, along with several subdomains.

The problem to solve was that the domain and each subdomain needed to go into their own separate root directory to simplify FTP uploads. There are 20,000 pages of documentation in pre-rendered HTML to upload, which is not a trivial issue.

The different websites on Apache Web Server all use the same cPanel to manage them. I have never used Apache before. Pipi 3 and 4 used IIS. So a bit of a learning curve for me.

According to Wikipedia

"cPanel is web hosting control panel software developed by cPanel, L.L.C. It provides a graphical interface (GUI) and automation tools designed to simplify the process of hosting a web site to the website owner or the "end user". It enables administration through a standard web browser using a three-tier structure. While cPanel is limited to managing a single hosting account, cPanel & WHM allows the administration of the entire server. ..."

The version I use is called Plesk.

The .htaccess file had to have a redirect added and written in Perl, which I have yet to learn, so GreenGeeks provided excellent support and edited the file.

It was

RewriteRule ^(.*)$ /subdirectory/$1

It is now

RewriteRule ^(.*)$ /ajabbi.com/$1

And it works perfectly.

Useful references to .htaccess

No comments:

Post a Comment