httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent West <we...@acu.edu>
Subject Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?
Date Fri, 23 Feb 2018 04:14:30 GMT
On Thu, Feb 22, 2018 at 9:13 PM, Kent Frazier <frazier377@sbcglobal.net>
wrote:

> Change the name of index.php to index1.php and access using that name?
>

That almost works. It allows me to open the index(1).php home page from my
link in index.html, but if I try to go any deeper, it loads the index.html
(while, interestingly, having the .php's deeper-level URL in the URL
address bar of the web-browser). So apparently, the rest of the .php-based
site expects its own index.php file to exist.

>
> On 2/22/2018 2:38 PM, Kent West wrote:
>
> I have a WordPress site that works. If my /etc/apache2/sites-enabled/sitename.conf
> file is set with the "DirectoryIndex index.php" directive, all is well, and
> pointing a web-browser to http://sitename.org loads the sitename's
> index.php file as it should.
>
> But I need to temporarily put up a dummy site, consisting of just a very
> simply index.html file. That's easy enough; I create the index.html file,
> and then change the sitename.conf file to "DirectoryIndex index.html" and
> restart Apache2. All is good.
>
> 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.
>
> It seems I can serve index.html OR index.php, but not both at the same
> time (depending on the URL entered into the web-browser's URL bar).
>
> Bonus points after getting this to work: Adding a button in the
> "index.html" file that allows the viewer to "Click here to get to Full
> Site" that points to "index.php".
>
> I've been googling all morning and part of last night to figure this out,
> with no joy. Thanks for any help you can throw my way!
>
>
> --
> Kent West                    <")))><
> Westing Peacefully - http://kentwest.blogspot.com
>
>
>


-- 
Kent West                    <")))><
Westing Peacefully - http://kentwest.blogspot.com

Mime
View raw message