After two days of Regular Expression learning and studying wordpress routing functions, the custom wordpress routing function is successfully implemented. The following describes the implementation of routing rules.If you want to pass custom url parameters through a route, you must use the wordpress function to add the
In order to facilitate the search engine crawl (in other words is false static), the following is the rules of the URL rewrite, the effect of looking at my Chinadigger link address. My current rewrite rule:
Copy Code code as follows:
[Isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect Httpd.ini and Httpd.parse.errors files
# from accessing through HTTP
# WordPress
1. First, you must check whether your host's server supports the mod_rewrite mode (currently supported by many php hosts) and the main directory is writable, you can set it in Options> Permalinks (this does not have to worry, but almost all virtual hosts currently support it ). 2. determine what kind of link you use as your permanent website Permalinks? If the domain name is a person represented by a blog on the Internet, then the fixed website of your blog is your house number. Only through thi
image/png "Access plus 1 month"Expiresbytype image/jpg "Access plus 1 month"# js/css valid for 1 weeksExpiresbytype text/javascript "Access plus 1 week"Expiresbytype text/css "Access plus 1 week"WordPress Build Station program pseudo-static code# begin WordPress #这是一行注释, which means WordPress htaccess starts here#如果Apache加载了mod_rewrite. C module, run the followi
(get_bloginfo (' url ')); } else {//write the process of user registration here} exit (); Case ' login ': default:if ($user _id) {Wp_redirect (Get_bloginfo (' URL ')); } else {//Here Write user login process} exit ();}2, disable the landing page of WordPress comes withTh
Through the WordPress background preferences to change the site URL address, the site will appear to be unable to access the situation, generally speaking, the site is not landing on the back, I found from the Internet four methods, the four methods of the first three are required to log in to the backstage, but in fact, after the error, can not login backstage, Unable to log in backstage to adjust! So I us
replace all the content of the entire article (or even the template) to implement your business logic.
I used to fill out a form registration system for holding activities for a WP website. The idea is as follows:
Create a page that occupies URL RoutingHttp://xx.xx/apply/
Use a plug-in to take over the content of this
="Button"Value="Register"/> Add Style* { margin:0; padding:0; List-style:none; font-family: "Microsoft Jas Black", "Zhang Haishan Sharp line body Jane"}body{ text-align:center;} #login_box {width:300px; padding:10px; border:1px solid #000; margin:100px auto;}Then encapsulated good one JSON function, this function, url,data,success,error,cbkey,timeout these six parameters is optional, URL is the company give
Because xiaoxin is just getting started with wordpress, many things are also learning slowly, so some study notes during this learning process are recorded in this way, this may also be a process of growth for myself. Looking back later, I will find that the accumulated knowledge is growing constantly. At the same time, I believe that the visitors who come to visit, also need some knowledge to charge, of course also need to declare, these things becau
The implementation of the function is very simple, is to write a WordPress plug-in, when the plugin can be installed to automatically generate a page in the WordPress front desk (not the page to publish the article, but a separate page), and use Shortcode output a form form.
WordPress more than 3.5 version, hidden behind the background of media Settings page upload path (upload_path) and file URL address (Upload_url_path) settings, as shown in the following figure. Some friends need this function, then how to do it, here to introduce you two ways to retrieve this function.
Code back
You can restore this functionality by adding th
Wordpressid is a simple method for obtaining the page ID of the template used in WordPress. WordPress provides a simple method to obtain the page ID of the template used. what is wordpressid? By default, WordPress uses page. php i
A simple way to get the page ID of the template used in WordPress, Wordpressid
What is a template? By default WordPress is using the theme directory page.php to display the page as a template, but sometimes we need a different template to display the page, such as login,
: This article mainly introduces the page-based static wordpress list and adds html suffixes. For more information about PHP tutorials, see. First View Results
After use, the URL is http: // localhost/news/paged/1.html.
1. HTML suffix
Add_filter ('Get _ pagenum_link ', 'My _ get_pagenum_link', 1, 1 );
Function my_get_pagenum_link ($
The company has developed an e-mall project. Now requires registration, login, shopping cart, payment these pages are set to HTTPS transmission, other pages for HTTP transmission. Ask Master how to configure?
Reply content:
The company has developed an e-mall project. Now requires registration, login, shopping cart, payment these pages are set to HTTPS transmission, other pages for HTTP transmission. A
About WordPress 3.1 Upgrade to homepage redirect Cycle reason may be: wp-include/template-loader.php file head of the following code caused.
About WordPress 3.1 Upgrade to homepage redirect Cycle reason may be: wp-include/template-loader.php file Head of the following code caused.
if (defined (%u2018wp_use_themes%u2019) wp_use_themes)
do_action (%u2018template_redirect%u2019);
The solution is to delete
What is a template? By default, WordPress uses the page under the topic directory. php is used to display pages as templates, but sometimes we need different templates to display pages, such as logon, registration, and contribution pages. These pages are different from common pages, at this time, WordPress provides a
From: http://www.li.cm/news/2011/04/17/wordpress-%E8% AE %BE%E7%BD% AE %E9%9D%99%E6%80%81%E5%90%8E%E6%A0%87%E7%AD%BE%E4%B8%AD%E4%B8%AD%E6%96%87%E9%93%BE%E6%8E%A5%E6%89%BE%E4%B8%8D%E5%88%B0%E9%A1%B5%E9%9D%A2%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9.html
On the Windows IIS host, set the WordPress tag. When you click Enter at the front-end, you will find that the page ca
://www.domain.com/program/ Links to Tokyodaigaku/page-2.html.
Note that my pseudo static rule is/%category%/%postname%.html, and if your rules are different, modify the code or the pseudo static rules yourself.
overriding URL rules
If you do not rewrite the rules, WordPress is not aware of this link, it thought there is a directory called Tokyodaigaku, there i
What is a template? By default WordPress is using the theme directory page.php to display the page as a template, but sometimes we need different templates to display pages, such as login, registration and submission page, and so on, these pages and ordinary pages are different, At this time
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.