ADVERTISEMENT



Google       

Home -> Law Blog Directory -> Legal Marketing & PR Blogs -> PaperStreet Web Design: SpeakOut

OR PHONE (866) 635-1838 for Bankruptcy Help, (866) 635-6190 for Divorce,
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense

Find a Local Lawyer

Bankruptcy (866) 635-1838
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402

Bookmark

Legal Marketing & PR

: PaperStreet Web Design: SpeakOut

Wordpress .htaccess URL Rewrite - Not Control Specific Subfolder

By Peter

ADVERTISEMENTS

Need to make a file or folder in Wordpress not be controlled by the typical permalinks or htaccess file?  Have some static, dynamic, or other programs that you don?t want controlled by the Wordpress publishing system?

Here is how to write a separate .htaccess file to control only that subdirectory of files.  The key is only putting the .htaccess file in that directory and leaving WP main .htaccess completely alone.

1.    Write your typical .htaccess file.  In our case, we were rewriting simple terms such as:

http://www.domain.com/law/index.php?pagetitle=Headline

?to a nice name like

http://www.domain.com/law/Headline

We needed the /law/ directory to be excluded from Wordpress typical rewrite to display some custom Google Adwords pages.

2.    Leave alone the main Wordpress .htaccess file.  It controls everything else except the subfolder you are working with.  Don?t touch it, seriously.

3.    Simply put the new .htaccess file in the sub folder of Wordpress that you want to use.  In our case, our .htaccess language was just the following:

#LANDING PAGES
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?pagetitle=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?pagetitle=$1

BAM, that is it.  All done and it works.

Full post as published by PaperStreet Web Design: SpeakOut on June 10, 2009 (boomark / email).

Bloggers, promote your law blog by nominating your blog for inclusion in USLaw.com's Law Blog Directory and RSS Reader. Benefits described.
Related Law Articles
Lawsuits and Settlements

Related Searches

























































































































US Law
#1 Online Legal Resource













Your Blog Subscriptions
Subscribe to blogs

10,000+ Law Job Listings
Lawyer . Police . Paralegal . Etc
Earn a law-related degree
Are you the author of this blog? Adding USLaw.com to your Blogroll increases relevance. You qualify to display a USLaw Network badge.
Suggest changes to this blog's description or nominate another for inclusion. Register for updates.


Practice Area
Zip Code:

Contact a Lawyer Now!






0.0038 secs (from cache 11/03/26 06:30:11)