Go Web Programming PHP website version: Php-for-go-web

Source: Internet
Author: User
Tags php website
Php-for-go-web is a MD file that uses PHP+BOOTSTRAP3 to parse Go WEB programming. Build a local or remote Web site. Mom doesn't have to worry about my Internet connection any more.

    • Get MD file from Https://github.com/astaxie/build-web-application-with-golang/tree/master/zh

    • PHP parsing class library for obtaining Markdown format data from Https://github.com/erusev/parsedown

    • Using PHP parsing to get HTML data

    • Display the final HTML page using Bootstrap

I do not produce code, I am a porter of code! Exhibition Site: http://go.webiji.com

Installation configuration

[Apache]

The mod_rewrite.so module is loaded in the httpd.conf configuration file allowoverride None changes to None to save the following content as a. htaccess file in the same sibling directory
 
  
   
   as the application portal file Rewriteengine on Rewritecond%{request_filename}!-d rewritecond%{request_filename}!-f RewriteRule ^ (. *) $ index.php? file=$1 [qsa,pt,l]
 
  

This project was developed and tested under Wampserver. It is recommended to use the Wampserver environment.

[IIS]

If your server environment supports Isapi_rewrite, you can configure the Httpd.ini file to add the following:

Rewriterule (. *) $/index\.php\?file=$1 [I]

[Nginx]

By configuring the forwarding rule implementation in nginx.conf:

Location/{//... omit part of the code   if (!-e $request _filename) {   rewrite  ^ (. *) $/index.php?file=$1 last  ;   break;    } }

If your project is installed in a level two directory, the Nginx pseudo-static method is set as follows, where Goweb is the directory name in which it is located.

location/goweb/{    if (!-e $request _filename) {        rewrite  ^/goweb/(. *) $  /goweb/index.php?file=$1 Last  ;    }}

Project home:http://www.open-open.com/lib/view/home/1446558564638

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.