Support

Admin Tools

#20620 Admin Tools on WIndows server: htaccess

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by jjst135 on Thursday, 31 July 2014 07:07 CDT

jjst135
 Hi! We have Akeeba Admin Tools Pro installed on a Windows server. This is why the htaccess maker is not shown in Akeeba Admin Tools, right?

But the server administrator of this server claims their server does know how to handle .htaccess files. Not sure how.

Is there a way to use the .htaccess editor on this server?

Kind regards,
Jip

nicholas
Akeeba Staff
Manager
IIS does not support .htaccess. There are third party solutions for IIS which partially support a very few .htaccess directives but these are not compatible with the .htaccess Maker file. As a result we chose to display a big warning that .htaccess Maker will most likely not work with your server. You can try, but your mileage may vary. The direct access URL to this feature is administrator/index.php?option=com_admintools&view=htmaker

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jjst135
Hi Nicolas,

The windows server uses Helicon Ape (http://www.helicontech.com/ape/). Never heard of it before. Also am I not sure how much of the .htaccess functionality can be used.

One of the modules it uses is mod_rewrite.
http://www.helicontech.com/ape/doc/mod_rewrite.htm

I guess that's the module that provides most of the security features the .htaccess maker uses.

Maybe I'll give it a try using the direct link you provided. The site is not live yet.

Kind regards,
Jip.

nicholas
Akeeba Staff
Manager
If it really implements what it claims to implement then you should be able to use .htaccess Maker with it. Give it a go with the direct link and please let me know.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jjst135
Hi Nicolas,

I created a .htaccess file on the windows server with the direct link to the htaccess maker. I needed to delete these parts to make it work:

##### Redirect index.php to / -- BEGIN
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^index\.php$ http%2://www.tijdelijkehosting.nl/ [R,L]
##### Redirect index.php to / -- END

## Disallow access to rogue PHP files throughout the site, unless they are explicitly allowed
RewriteCond %{REQUEST_FILENAME} (\.php)$
RewriteCond %{REQUEST_FILENAME} !(/index[23]?\.php)$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule (.*\.php)$ - [F]

So I guess it works partially... It seems that some rewrite rules need to be adjusted to make it work. We will dive into that later.

Is there a way to check if the (other) rules created by the .htaccess maker actually work?

I also need to bulld the template and install extra components for this website, so I'm not sure what I will run in to during the creation of this site.

I am not sure if we are actually are going to use it this way when we go live. We'll see.

Kind regards,
Jip Jonker

nicholas
Akeeba Staff
Manager
> I needed to delete these parts to make it work

Hm, if you remove these bits it's as good as having no .htaccess file.

> Is there a way to check if the (other) rules created by the .htaccess maker actually work?

No

> I also need to bulld the template and install extra components for this website, so I'm not sure what I will run in to during the creation of this site.

Apart from pain and suffering? The urge to switch to Apache hosting, preferably on Linux :) Seriously, I have a heads up for you: don't use uppercase letters in your database name prefix and don't trust any software which has uppercase letters in its database tables' names. Due to Windows-specific reasons this will cause MySQL to report tables as corrupt and make your life miserable.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jjst135
Ok, thanks. In this case hosting on a Linux server is not possible because this is a client who delvers services to their own clients on windows machines. Like monitoring, applications etc. The are windows specialists... So they do not want their website hosted on a Linux server (or our Linux Server). I told them I would prefer not to do this on Windows, and also that this would probably mean some more problems and less security. But, it's their choice. As long as I get paid for extra time spend on configuration...

And thanks for the tip on the database prefix / table names.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!