httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "@lbutlr" <krem...@kreme.com>
Subject [users@httpd] Re: How to browse to index.php OR index.html on WordPress site?
Date Fri, 23 Feb 2018 01:32:52 GMT
On 2018-02-22 (15:38 MST), Kent West <westk@acu.edu> wrote:
> 
> But I still need to manually be able to get to the full-blown .php-based site. When I
web-browse to sitename/index.php, it reroutes to sitename/index.html. If I change the .conf
file to "DirectoryIndex index.html index.php" and restart Apache2, that doesn't help.


I have, in http.conf:

<IfModule dir_module>
    DirectoryIndex index.php index.html 
</IfModule>

Which loads index.php by default if it's present, otherwise index.html

Neither 'redirects' to the other.

I've never used a site.conf in this way, but I have overridden the default in a site conf:

DirectoryIndex index.htm

for example.

Wordpress has a pretty complicated .htaccess file, did you check there?

-- 
"I've just learned about his illness. Let's hope it's nothing trivial."
Irvin S. Cobb


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message