xinali
V2EX  ›  问与答

网站这样的格式是用什么框架了吗

  •  
  •   xinali · Oct 1, 2016 · 3850 views
    This topic created in 3685 days ago, the information mentioned may be changed or developed.
    http://ccst.jlu.edu.cn/?mod=info&act=view&id=3440
    http://ccst.jlu.edu.cn/?mod=info&act=view&id=299
    

    网站的网页都是用这种形式访问,是使用了什么框架还是别的什么技术了吗?没有出现访问具体的文件的后缀,直接通过参数变化浏览不同的网页

    20 replies  •  2016-10-02 20:10:05 +08:00
    7z7
    7z7
    Oct 1, 2016
    1
    使用伪静态,看源代码像没用框架的
    dinosjk
    dinosjk
    Oct 1, 2016
    2
    apache + php 的话,搜索 mod_rewrite 吧
    coreki
    coreki
    Oct 1, 2016 via iPhone
    3
    路径下可以默认为 index.php ,不显示文件名
    bayallen
    bayallen
    Oct 1, 2016
    4
    不讨论具体网站,但形如?parameter=something 的这种东西叫做 query string ,你看搜索引擎都是通过 query string 向后台传输关键字的。

    一般而言,后台可以根据不同的参数,返回不同的东西。
    syahd
    syahd
    Oct 1, 2016 via Android
    5
    这后面的是请求的字符串,如果你了解过 http 里的 get 请求就很容易能理解了,如果想看一个网站用的什么技术的话,我推荐一个 chrome 扩展,可以查看使用的技术,但是名字我忘了……
    aprikyblue
    aprikyblue
    Oct 1, 2016 via Android
    6
    这连 rewrite 也不需要啊。。
    在默认首页文件里处理 GET 参数就行了。。
    mafic
    mafic
    Oct 1, 2016 via iPhone
    7
    这种网站看的话很简单,根目录加个 index.php 或者 index.asp 、 index.jsp 、 index.aspx 这个站点只有 index.php 不是 404 ,所以站点是 PHP 的, php 搭配 mysql 是绝配
    misaka19000
    misaka19000
    Oct 1, 2016 via Android
    8
    了解一下 HTTP 协议就能解决楼主的疑惑了
    bdbai
    bdbai
    Oct 1, 2016 via Android
    9
    web application 网页全都是动态渲染的,没有“文件”一说。
    xmoiduts
    xmoiduts
    Oct 1, 2016 via Android
    10
    1.校友?
    2.应该是传参。
    3.这个网站应该是外包的。
    xinali
    xinali
    OP
    Oct 1, 2016
    11
    @xmoiduts 校友,哈哈
    xinali
    xinali
    OP
    Oct 1, 2016
    12
    @misaka19000 http 协议哪部分呢?
    CloudnuY
    CloudnuY
    Oct 1, 2016
    13
    用 http://ccst.jlu.edu.cn/index.php?mod=info&act=view&id=299 也可以访问

    Server: Apache/2.2.3 (CentOS)
    X-Powered-By: PHP/5.4.45
    txlty
    txlty
    Oct 1, 2016
    14
    有的是办法。也不一定是框架,解析什么后缀名本身就能自定义。去掉当然也可以。
    伪静态也可以。
    首页文件(如 index.php )在路径里省略掉也可以。
    txlty
    txlty
    Oct 1, 2016
    15
    果然是最后一点,就这么简单。
    http://ccst.jlu.edu.cn/index.php?mod=info&act=view&id=3440
    lslqtz
    lslqtz
    Oct 1, 2016
    16
    需要个啥的重写,首页默认文件
    wu1990
    wu1990
    Oct 1, 2016
    17
    phpcms
    ypfno1
    ypfno1
    Oct 2, 2016
    18
    rewrite 喽
    misaka19000
    misaka19000
    Oct 2, 2016
    19
    @xinali 这个讲起来就比较复杂了

    简单来说话,当你请求一个网页时,你先会通过 HTTP 协议把请求发送到服务器,服务器通过解析你的请求来判断应该给你返回什么样的字符流,所以带不带后缀名完全看服务器的解析方式,而和其他的东西无关
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5671 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 03:09 · PVG 11:09 · LAX 19:09 · JFK 22:09
    ♥ Do have faith in what you're doing.