User Tools

Site Tools


gallery2_issues_mod_rewrite

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gallery2_issues_mod_rewrite [2009/03/31 06:22]
ben created
— (current)
Line 1: Line 1:
-Custom mod_rewrite rules in .htaccess (at the top) to fix broken URLs with main.php in them: 
  
-[code] 
-#THESE TWO FIX THE ISSUE of /main.php in the URL: 
-#More fixup for more than one "/​v/"​ in the URL: 
-RewriteCond %{THE_REQUEST} /​gallery2/​main\.php/​v/​(.*)/​v/​(.*) [OR] 
-RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​v/​(.*) 
-RewriteRule . /​gallery2/​v/​%1 [R=301,L] 
-RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​d/​(.*) 
-RewriteRule . /​gallery2/​d/​%1 [R=301,L] 
-RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​random ​     
-RewriteRule . /​gallery2/​random [R=301,L] 
-[/code] 
gallery2_issues_mod_rewrite.1238494977.txt.gz ยท Last modified: 2009/03/31 06:22 by ben