WebPagetest Forums
WPT 2.7.2 .htaccess in /video - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: WPT 2.7.2 .htaccess in /video (/showthread.php?tid=11671)

WPT 2.7.2 .htaccess in /video - andydavies - 09-18-2012 01:27 AM

Hey Pat,

I'm not sure where to put this so I've gone for here as it's Private Instance related...

I've updated my .htaccess in /video so it's wraps the rewrites in a check for mod_rewrite (code below)

Also I'm wondering about the / before create vs compare but I've never seen /video/create does it exist?

#Friendly urls

<IfModule mod_rewrite.c>
RewriteEngine on

#main pages
RewriteRule ^compare$ compare.php
RewriteRule ^create$ /create.php



RE: WPT 2.7.2 .htaccess in /video - pmeenan - 09-21-2012 11:22 PM

Thanks, I just updated the version in SVN. Honestly I don't think either of those gets used anywhere so I may be able to get rid of it entirely.

create.php is in the video directory so the rewrite rule was completely wrong (and it's used as part of the path for generating videos).

I'm pretty sure all of the code references compare.php directly even when in friendly urls mode but I'll need to check before removing it.