dongtan3395 2011-08-04 18:17
浏览 16
已采纳

帮助理解php链接[关闭]

My website has a structure like this: root folder contains --- > 1)index.php 2) Child Folder which also contain home.php, contact.php and products.php

Now I just created a new page called page.php (in the child folder) and made some changes to it so it becomes unique to only the homepage.

My question is, how do I change the the homepage link from the default home.php (in the child folder) to the page.php??

Do I have to create the link in the index.php


Please forgive my ignorance. To make the question simple, take it this way: How do I create a theme and make it unique to only a particular page say only the homepage or only the products page?? I've been very frustrated for weeks trying to customize my homepage

  • 写回答

2条回答 默认 最新

  • dtuct88226 2011-08-04 18:20
    关注

    I can't really tell what you're asking. Are you trying to make it so that:

    http://mywebsite.com/child-folder/
    

    Resolves to this?

    http://mywebsite.com/child-folder/page.php
    

    If so, just put this in /child-folder/.htaccess:

    DirectoryIndex page.php
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)