hardrock 发表于 2013-12-28 14:13:41

Wampserver2.4版-32bits支持固定链接(伪静态)吗?

本帖最后由 hardrock 于 2014-11-6 23:20 编辑

wampserver2.2e版-32bits不支持固定链接(伪静态)。
Wampserver2.4版-32bits支持固定链接(伪静态)吗?

两个都支持,
http://www.thegrouplet.com/forum.php?mod=viewthread&tid=112908
http://www.wpdaxue.com/wampserver.html
http://www.wpdaxue.com/wordpress-change-hosting.html
http://www.wpdaxue.com/basic-skills-of-creating-themes.html
WampServer 配置伪静态(固定链接),
安装后建议开启Apache的 mod_rewrite模块,
要不然设置静态化的网页打不开提示404错误
默认情况下,WampServer不支持伪静态,我们需要进行一些配置
1.启动wampserver服务,左键单击右下角wampserver图标,打开Apache菜单下“httpd.conf”文件;
2.搜索找到“LoadModule rewrite_module modules/mod_rewrite.so”这一行,去掉前面的“#”;
3.找到“AllowOverride None”改为“AllowOverride All”;
4.重启wampserver的所有服务
5.新建.htaccess文件,放在当前网站根目录下,\wamp\www\.htaccess ,在.htaccess文件中添加伪静态规则,比如添加WordPress伪静态规则:
Apache伪静态规则
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ -
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress注:每个建站程序的伪静态规则不一样,请根据自己的需要添加。
如果wp文件放在目录a下,.htaccess要放在目录a下,\wamp\www\a\.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /a/
RewriteRule ^index\.php$ -
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /a/index.php
</IfModule>
# END WordPress
访问就用 http://localhost/a/ ,
wp后台----WordPress地址(URL)----站点地址(URL), 要改成 http://localhost/a/


php.ini部分
memory_limit =128M
post_max_size = 8M
upload_max_filesize = 2M

php环境下无法上传大文件的解决方法 http://www.ppsmove.com/stationtec/4862.html



http://www.solagirl.net/how-to-migrate-wordpress-from-local-computer-to-server.htmlhttp://www.solagirl.net/wp-migrate-db.htmlhttp://www.wpdaxue.com/wp-migrate-db.html
WP Migrate DB 数据库迁移插件   在本地测试站安装,在导出数据库前更改数据库网址和文件路径等,然后导出数据库。网站移植到空间后,然后在 phpMyAdmin 导入刚才导出的数据库文件即可。站点数据等更改完成后就可以卸载这插件了




Pretty Link   http://www.wpdaxue.com/pretty-link.html
在WordPress后台“安装插件”中直接搜索Pretty Link,搜索结果中是Pretty Link Lite,也就是Pretty Link的简易免费版本



How To Move Your WordPress Website From localhost To Live Server
http://www.wpexplorer.com/wordpress-local-to-live/

阿百川 发表于 2013-12-28 17:11:38

http://servkit.org/

用这个吧,完全没问题

maketuwen 发表于 2013-12-28 19:20:05

支持的~

hardrock 发表于 2013-12-28 21:33:54

maketuwen 发表于 2013-12-28 19:20 static/image/common/back.gif
支持的~

2.2版还是2.4版支持?
我试过,2.2版设了固定链接,post打不开
页: [1]
查看完整版本: Wampserver2.4版-32bits支持固定链接(伪静态)吗?