skip to content
..., etc.
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
gallery2_issues_mod_rewrite
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> Another issue exists whereby the problem of these nested main.php/v/ links are recursive- I need to find a reg-ex to describe /main.php/[any number of /v/foo's]. Fun. 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/
gallery2_issues_mod_rewrite.1238526647.txt.gz
· Last modified: 2009/03/31 15:10 by
ben
Page Tools
Show page
Old revisions
Backlinks
Back to top