Permalinks won’t work on local PC
I’ve always had problems with permalinks on my local Windows installation of Apache, but things work great on my Linux installation. I also have mod_rewrite in both instances, it’d be good to know what the problem is.
A sample output of the url (what’s in your address bar after you click the link) will help immensely in determining the problem.
Hrm…. I was thinking of a way to fix this if I had what I asked for and now I don’t remember. Anyways, try adding this to your C:\windows\system32\drivers\etc\hosts file (go to Start, Run, and type
Right after it says “localhost”, click there then hit the spacebar once, and type your FQDN, linked.viper007bond.com, and try using it again (type http://linked.viper007bond.com into your browser instead of http://linked.viper007bond.com). I take it your permalinks work if you’re not using your home PC to view the website?
I’ve *never* been able to get permalinks working on my Winders machine…. I just chalked it up to a fact of life and turn them off when working locally.
Although, mark’s solution sounds intriguing…. if any one tries it, let us know if it works.
mark, I think you’re quite confused as to what we’re talking about. I’m not talking about using my home PC to view my site and permalinks not working there. They work just fine:
Permalinks don’t work though on my local install of WordPress. I have Apache, PHP, and MySQL installed on my Windows machine for development purposes and permalinks don’t work here.
http://linked.viper007bond.com/local_phpinfo.htm is the
phpinfo()results for my local install.
@techgnome: that’s what I figured. No biggy though. It’s not like the URL actually matters. 🙂
Ah yes, that’s probably it. Many people have mixed results with getting mod_rewrite to work properly or at all on Windows machines. If you don’t have access to a linux server, you may want think about setting one up, either through VMWare ($$$) or … (can’t remember the name of a free Linux emulator for Windows). Or if you have some spare parts, you could spend some dough and put together a headless Linux server (I did this, definitely the way to go: http://laeb.dyndns.org:81).
I use Linux as my primary machine, but sometimes I use a Windows machine.
I finally decided that I would, regardless of how long it took, track down the issue and make it work. Mod_Rewrite should have no reason not to work in Windows, so I figured it was some flag..
Well, I finally got it work.
For starters. I’m running Apache 2 installed in “/program files/Apache Group/Apache2”.
Edit the file /conf/httpd.conf and enable mod_rewrite if it hasn’t been by uncommenting the LoadModule rewrite_module modules/mod_rewrite.so and then most importantly go to the <DocumentRoot> definition and you will see a accompanying <Directory> defintion. Set the AllowOverride flag there to all using AllowOverride All.
And bingo, I had pretty URL’s working..
No kidding? Hmm… Will have to give this a go… would make things easier when I grab copies of my DB.
I’m having the same problem with my permalinks not being found while running in localhost mode.
I tried what cypher suggested, but that did not help.
rewrite is enabled.
Make sure the AllowOverride for the directory where you have your wordpress located is set to All. Otherwise, your .htaccess file is ignored.
AllowOverride for my root directory is set to All.
Problem solved by doing the following:
As suggested by Podz at his Tamba2 WebSite:
In phpMyAdmin,under the SQL tab, instead of importing the database file by using the browse function in the lower window, I copied and pasted the database contents in the upper window.
The Permalinks now work fine.
Huh? What’s the relation and corelation here. How does this allow or disallow the permalinks from working?
- The topic ‘Permalinks won’t work on local PC’ is closed to new replies.