Forum Moderators: phranque

Message Too Old, No Replies

I broke Rewriting and can't find out how to roll it back

         

ghostcorps

4:56 am on Sep 21, 2010 (gmt 0)

10+ Year Member



Hi Guys

I have been building a server for a wordpress website and everything was going great. But yesterday I was doing some hardening and somehow broke the rewriting function.

I re-enabled all mods, but it hasn't come back.

I am far from savvy with mod_rewrite and am lost trying to find the particulars on what is causing this issue. Where do I start troubleshooting this?

If it helps, pls PM me and I can send you the info.php


I am running Apache 1.3 in a FreeBSd 8.1 Jail.

phranque

8:50 am on Sep 21, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



clear your cache and try again.

ghostcorps

12:00 pm on Sep 21, 2010 (gmt 0)

10+ Year Member



Thanks :)

But, now I can't find how to clear the cache; htcacheclean doesn't seem to exist. I'm sure it is a simple thing to do but I have never had to do it.

jdMorgan

3:57 pm on Sep 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Delete your browser cache first...

Jim

ghostcorps

11:00 pm on Sep 21, 2010 (gmt 0)

10+ Year Member



Thanks JD,

I have it ago, but no luck.

ghostcorps

4:41 am on Sep 25, 2010 (gmt 0)

10+ Year Member



Hi Guys

I am still stuck here.

I have rolled back everything. I am using the default httpd.conf and commented out everything but the rewrite rules that worked before in the .htaccess. But I can not get it to work.

Please tell me how to flush the apache cache. I'm out of ideas.

jdMorgan

11:08 pm on Sep 26, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe that all references to cache in this thread were referring to you client-side browser cache.

Unfortunately, you've already read everything I might know about this subject. :(

Jim

ghostcorps

3:49 am on Sep 27, 2010 (gmt 0)

10+ Year Member



Oh ok.

Thanks Jim.

The issue is not local to any machine or installation.

Is there perhaps a way that the website itself could have busted it? I am not building the site itself, perhaps I can palm off the responsibility :)

jdMorgan

3:23 pm on Sep 27, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know. Every line of code added or deleted is a potential cause for the problem.

But before "working on a server," it is best to back-up *everything* needed to do a complete roll-back. And when working on config code, back-up before each change to a file. Also try to comment stuff out instead of deleting it until you've tested for many hours or days. Put the date and time you modified it in as a comment.

When I write code for clients, I keep a back up of every change, including the original code. That way, I can roll back to any date or time. It also comes in handy when the client doesn't keep their own back-ups, and call me up to completely re-write their code after a major server disaster. I can say, "That's OK, here's the backup file" and make them very happy.

Jim