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:50]
ben
gallery2_issues_mod_rewrite [2009/04/01 04:51]
ben
Line 1: Line 1:
 +===== Problems with old links to gallery pages before moving to mod_rewrite =====
 Custom mod_rewrite rules in .htaccess (at the top) to fix broken URLs with main.php in them: Custom mod_rewrite rules in .htaccess (at the top) to fix broken URLs with main.php in them:
  
Line 21: Line 22:
  
 The "​final"​ lines are as such: The "​final"​ lines are as such:
 +<​code>​
 #This fixes a /v/ with no trailing characters (don't think this would ever really happen) #This fixes a /v/ with no trailing characters (don't think this would ever really happen)
 RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​v/​$ RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​v/​$
Line 40: Line 41:
 RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​random RewriteCond %{REQUEST_URI} /​gallery2/​main\.php/​random
 RewriteRule . /​gallery2/​random [R=301,L] RewriteRule . /​gallery2/​random [R=301,L]
 +</​code>​
 +
 +Discussion of the issue is [[http://​gallery.menalto.com/​node/​86858|HERE.]]