FREE Build A Niche Store Toolbar:

 

 
Over 100 Tools To Help You Create, Customize, And Optimize Your BANS Store! BANS Toolbar Home Page
 

.htaccess Before and After Dynamic Sitemap Edit

If you have edited your .htaccess file previous to this modification then your specific file may vary from the example below.

Return to Add a Dynamic Sitemap instructions.

Before:
Options +FollowSymLinks

 

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} -f [OR]

RewriteCond %{SCRIPT_FILENAME} -d [OR]

RewriteCond %{ENV:REDIRECT_STATUS} !^$

RewriteRule .* - [L]

 

RewriteRule ^install.php install.php [QSA,L]

RewriteRule ^search/([^/]+)?$ index.php?mainCat=search&q=$1 [QSA,L]

RewriteRule ^([^/]+)/([^/]+)?$ index.php?mainCat=$1&subCat=$2 [QSA,L]

RewriteRule ^([^/]+)?$ index.php?mainCat=$1 [QSA,L]

After:
Options +FollowSymLinks

 

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} -f [OR]

RewriteCond %{SCRIPT_FILENAME} -d [OR]

RewriteCond %{ENV:REDIRECT_STATUS} !^$

RewriteRule .* - [L]

RewriteRule ^sitemap.xml sitemap.php [QSA,L]
RewriteRule ^install.php install.php [QSA,L]

RewriteRule ^search/([^/]+)?$ index.php?mainCat=search&q=$1 [QSA,L]

RewriteRule ^([^/]+)/([^/]+)?$ index.php?mainCat=$1&subCat=$2 [QSA,L]

RewriteRule ^([^/]+)?$ index.php?mainCat=$1 [QSA,L] AddHandler .htm server parsed

Return to Add a Dynamic Sitemap instructions.

Was this helpful to you?  Click here to drop a tip into the tip jar

 
   
The terms BANS and Build A Niche Store were created by brothers Adam and Kelvin and are used with permission.
Copyright ©2008