Blog

Site Launch: JPB Commercial Real Estate Advisors

Commercial Real Estate CompanyNice to do a real estate website, it’s been a little while…JPB Commercial was a great one to start with! This is a small but powerful team of commercial real estate professionals located in Santa Rosa Beach, Florida.

We say they are powerful because they have the corporate power of JPB Partners, with headquarters in Maryland. So this means they are highly trained, but are also “in market” experts for commercial real estate in Destin, Panama City Beach, Panama City, Ft. Walton Beach, Pensacola, Tallahassee and Crestview.

You can really sense the professionalism as soon as you step into their office, and are greeted.

It was a privileged to be selected by them for their new, and we dare to say “edgy” but professional website. ClicksCrazy.com looks forward to this long relationship with JPB Commercial Real Estate Advisors!

Visit The Site: JPBCommercial.com

Redirect All Pages to a Single URL/Page

At times you might need to temporary redirect all pages on your website to a single page or url.

Example: The website needs to be taken down for maintenance. I have even seen this used as promotional tactic for sales, etc.

With a quick edit to your .htaccess file, you can do this!

How To Do It

Open up your .htaccess file, and add in the following code.
Note: If this change is just temporary, note the “302″ in the code below. “301″ would mean permanent.


<IfModule mod_rewrite.c>
RewriteRule temporarypage.php$ - [L]
RewriteRule ^(.*)$ http://yourdomainname/temporarypage.php [R=302,L]
</IfModule>

Additional Info: [L] means last rule processed. Therefore, if that rule matches the regular expression, all rules after it would not be run. Without it, temporarypage.php would continue to redirect to itself over and over again (which wouldn’t happen, your server would yell at you).

Shout out to Jete Okeeffe (System Admin Extraordinary) for helping us out with this one! You are the best!

Nobody Owner of File, Delete from Server

Recently I was working with a mobile wordpress theme, where the plugin actually installed some themes itself on the server.

The files were set to “nobody” as the owner, therefore, I could not delete them.

How To Fix This:

1. Change permissions on the parent folder of the file you want to delete to 777. (Do this via FTP, or SSH)
2. Create a file called remove.php.
3. Stick this code in the file: (This will get everything with the word “mobile_pack” in the file name.

system("rm -Rf mobile_pack*");

4. Save the file, upload and go to the file location in your browser.

That’s it! This same method should work regardless of what you need to remove, not just wordpress stuff.