Home -> Law Blog Directory -> Legal Marketing & PR Blogs -> PaperStreet Web Design: SpeakOut
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense
Find a Local Lawyer
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402
Legal Marketing & PR
: PaperStreet Web Design: SpeakOutWordpress .htaccess URL Rewrite - Not Control Specific Subfolder
By Peter
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).
Ortho Evra Patch Risk
Ortho Evra Side Effects
Have you or a loved one suffered from Ortho Evra side effects?
Ortho Evra Side Effects
P&G Recalls Specific Lots of Vicks Sinex Nasal Spray
P&G Recalls Specific Lots of Vicks Sinex Nasal Spray
Nationwide Recall Issued for Specific Lots of Atlas "Dietary Supplements"
Nationwide Recall Issued for Specific Lots of Atlas "Dietary Supplements"
Health Canada
Issues Warning for Specific-Formula Arthro-Ace
Medtronic
Recalls Specific Lots of Paradigm Quick-Set Infusion Sets
Ford Recalls
alleging cruise control switches are defective.
Polaris All-Terrain Vehicles
Defective Electronic Control Modules

Frank: Rewrite law that let AIG get federal loan (Detroit Free Press)
State property tax law might get rewrite (The Rock Hill Herald)
Five things New Zealand's copyright law rewrite must cover (Ars Technica)
Obscenity ScholarshipThe Legal Satyricon








