Put
<
a href
=
"http://wwww.aaaaaaaaa.com/bbb.php?id=888"
Target
=
"_blank"
>
HTTP
:
//wwww.aaaaaaa.com/bbb.php?id=888
Changed address form
<
a href
=
"http://wwww.aaaaaaaaa.com/888.htm"
Target
=
"_blank"
>
HTTP
:
//wwwww.aaaaaaa.com/888.htm
or
<
a href
=
"http://wwww.aaaaaaaaa.com/yourname/888.htm"
Target
=
"_blank"
>
HTTP
:
//wwww.aaaaaaa.com/yourname/888.htm
Of course, you can make a change in your requirements.
.
Apache MOD_REWRITE module
.
Everyone can look at a PHP learning forum of a demonstration
<
a href
=
"http://www.phpx.com/happy/"
Target
=
"_blank"
>
HTTP
:
//www.phpx.com/happy/
This forum layout and post
,
That is to use this technology
,
Address staticization
.
But it is fake
.
Where is this technology?
?
Allow BAIDU
,
Google and other income of your site all pages
.
The income address is your fake static address
.
Of course, others can't see you are fake.
.
And this technology hides the program that is executed behind
.
You can put
/
Soft
/
1234.html rewrite delivery to Soft
.
PHP
?
id
=
1234 Of course, you change your name to SoftxFewafew
.
PHP
?
id
=
1234 Surface or Soft
/
1234.html But your Apache has implemented the file you rewritten.
.
Fundamentally prevent others from invading from the program itself
.
How do I write below?
.
Divided into Windows and Liunx2 are HTTPDs in the CONF folder within the Apache installation folder.
.
After confed
,
turn up
#LoadModule Rewrite_Module "Modules / MOD_REWRITE.SO"
Put
# 去掉.
Then find the virtual host to join the ReWriteEngine on Rewriterule in the virtual host.
^ /
Soft
/
0
-
9
] ).
HTML
$ /
Soft
.
PHP
?
id
= $
1
// Explanation // www. Corn .com / Soft / 1234.html // Reword to // WWW. Corn.com / Soft.php? ID = 1234 // Here ID is changing, you give it 1 1
Rewriterule
^ /
0
-
9
] ).
HTML
$ /
Soft
.
PHP
?
id
= $
1
// Explanation // www. Corn .com / 1234.html // Rewind to // 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 // Reword to // www. Corn.com / Soft.php? ID = 1234 & catid = 2222, of course, casually, how do you change?
!
This is what Win is
.
Liunx is the same, but
<
IFModule MOD_REWRITE
.
c
>
Start
IFModule
>
End rewriting is added in the virtual host settings
.
If there is no virtual host
,
That added in the last
!