• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

.wml files / .htaccess

R

RootChaos

Guest
Hi Guys

I've been reading some posts on getting .htaccess files working as well as getting .wml files working.

As far as I can see, I have AllowOverride All set on the directory /home/httpd/vhosts in the config file /etc/httpd/conf/httpd.include

<Directory "/home/httpd/vhosts">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>


Which means that .htaccess should be working in any virtual host directory and sub-directories.

I also have a .htaccess file with the following :-

# Enable WML (Wireless Markup Language)
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
DirectoryIndex index.wml


Which should allow index.wml to be the default index file and also enable WAP content.

I don't think this config is working as I cannot browse to the index.wml file. It finds the file, but then prompts to save the file in stead of opening the file in the browser.


Can anyone suggest some steps where I'm going wrong ?


Thanx

RC
 
Hi...

I did not have index.wml in DirectoryIndex on httpd.conf - Added it just now but still no working result. Still wants to save the file...


RC
 
Back
Top