Set
[Url] http://wwww.aaaaaaaaa.com /...
The address format is changed
[Url] http://wwww.aaaaaaaaa.com /...
Or
[Url] http://wwww.aaaaaaaaa.com /...
Of course you can change it as needed.
The MOD_rewrite module of APACHE.
You can see a demo of a PHP learning forum.
[Url] http://www.phpx.com/happy...
The layout and posts of this forum use this technology. Static addresses are fake.
Where is this technology good?
It can make baidu, google, and so on revenue to all pages of your site.
The revenue address is your fake static address. Of course others don't know that you are fake, and this technology hides the program running behind you.
You can
/Soft/1234.html rewrite to soft. php? Id = 1234
Of course, change the name to softxfewafew. php? Id = 1234
The surface is still soft/1234.html, but you have executed the file you have rewritten in APACHE.
It can fundamentally prevent others from intruding into the program itself.
How can I rewrite the data below? WINDOWS and LIUNX2
All operations
Httpd. CONF In the conf folder of the APACHE installation folder
After opening, find
# LoadModule rewrite_module "modules/mod_rewrite.so"
Remove.
Then find the VM Configuration
Add to VM
RewriteEngine On
RewriteRule ^/soft/(%0-9%%%%%.html $/soft. php? Id = $1
// Explanation
// WWW. Corn. COM/SOFT/1234. HTML
// Rewrite
// WWW. Corn. COM/soft. php? Id = 1234
// Here the ID can be changed. If you give it 1, it is passed 1.
RewriteRule ^/(%0-9%%%%%.html $/soft. php? Id = $1
// Explanation
// WWW. Corn. COM/1234. HTML
// Rewrite
// WWW. Corn. COM/soft. php? Id = 1234
RewriteRule ^/(%0-9%%%%%_(%0-9%%%%%.html $/soft. php? Id = $1 & catid = $2
// Explanation
// WWW. Corn. COM/1234_2222.HTML
// Rewrite
// WWW. Corn. COM/soft. php? Id = 1234 & catid = 2222
Of course, you can change it as you like!
This is under WIN.
LIUNX is the same, but it must be added.
<IfModule mod_rewrite.c> Start
</IfModule> end
Rewrite is added to the VM settings.
If there is no Vm, add it to the end!