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

Both sides previous revision Previous revision
Next revision Both sides next revision
gallery2_issues_mod_rewrite [2009/04/01 04:51]
ben
gallery2_issues_mod_rewrite [2009/04/01 04:56]
ben
Line 17: Line 17:
  
 Also, http://​www.benhall.com/​gallery2/​main.php/​v/​ with my re-write rules is broken, need to exclude it for Nothing after the /v/ Also, http://​www.benhall.com/​gallery2/​main.php/​v/​ with my re-write rules is broken, need to exclude it for Nothing after the /v/
- 
- 
 ===== Think I've got it ===== ===== Think I've got it =====
  
Line 30: Line 28:
 RewriteCond %{THE_REQUEST} /​gallery2/​main\.php/​v/​([^/​]*) RewriteCond %{THE_REQUEST} /​gallery2/​main\.php/​v/​([^/​]*)
  
-#Also match for old /f/'s 
-RewriteCond %{THE_REQUEST} /​gallery2/​main\.php/​f/​([^/​]*) 
  
 #this one does NOT match the "​test"​ gallery, so we can test things... #this one does NOT match the "​test"​ gallery, so we can test things...
 #​RewriteCond %{REQUEST_URI} !/​gallery2/​main.php/​v/​test #​RewriteCond %{REQUEST_URI} !/​gallery2/​main.php/​v/​test
 RewriteRule . /​gallery2/​v/​%1/​ [R=301,L] RewriteRule . /​gallery2/​v/​%1/​ [R=301,L]
 +
 +#Also match for old /f/'s
 +RewriteCond %{THE_REQUEST} /​gallery2/​main\.php/​f/​([^/​]*)
 +RewriteRule . /​gallery2/​v/​%1/​ [R=301,L]
 +
 #I don't have download links, but I think this one may allow download links to work as well: #I don't have download links, but I think this one may allow download links to work as well:
 RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​d/​([^/​]*/​[^/​]) RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​d/​([^/​]*/​[^/​])