.htaccess is within the roor of your public html directory. The period makes it hidden but if your using a control panel like CPanel, you should see it.
Set the file permissions to 666 after you find it and run the permalink thingie again. Make sure you set it back t 644 after you’re done.
Thread Starter
thesp2
(@thesp2)
I tried this but it doesn’t work.
The original file setting is 777. I then change it to 666 and update the permalin thing in my admin. I then come back and set it to 664.
After this I cant access any pages, not even the main domain. If I set it back to 666, I can access the main page but no other links.
thesp2… I’m certainly no expert but I just had a similar problem (I think) with my site. In my case, I had to create a .htaccess file and copy and paste the code that WP suggested after I tried to change my permalink structure. I then had to upload it via FTP and it was supposed to work—but didn’t. In fact, it would just make my whole site crash.
In the end, I realized my problem was that I create the .htaccess file in TextEdit (for Mac), but I was using a rich text editor instead of simple text. Once I switched it to plain text and uploaded it to the server, everything worked fine (so far).
Oops, I wasn’t done typing. Anyway, was just going to add that I can’t tell if you’ve had to create the file yourself or not, but if you are creating/editing it in a text editor make sure you’re using a simple editor (and even something as simple as TextEdit apparently can be not simple enough).
Hope this helps.
Laura
also… if that is this case, switch to a plain text editor in the preferences of TextEdit… or whatever program you’re using. If it’s not the case—I don’t know enough about this stuff to offer any other advice, but I hope you figure it out.
Thread Starter
thesp2
(@thesp2)
but I don’t need to creat one. I already have it on my control panel. Then how????
If you leave global write privs on the file then WP can make the changes (666). I much prefer to edit the file myself (644). Just make sure it is named exactly .htaccess with no .txt or anything added. You can use FTP and whatever you want to edit the file as straight text. If the site breaks then rename the file until you find out what is wrong. Looking into the server logs will give a clue to what is wrong.
Have you edited the .htaccess file and reloaded it to your server?
To do this: On the screen where WP tells you to need to update your .htaccess, scroll down to the bottom. There, you should find some code. Copy and paste that into your .htaccess file (which you will need to download on your computer and open via a simple text editor). Save it, and reload it onto your server and change permissions to 666. Then, update the permalink thing again, and then switch permissions of the .htaccess file back to 664. Cross your fingers, and then try loading your site.
Hope this helps.