aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-08-26 23:00:31 -0700
committerzotlabs <mike@macgirvin.com>2018-08-26 23:00:31 -0700
commit9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e (patch)
treeaf109abdb981631e235c51fbfbf1ebcee486c1f9 /.htaccess
parent7018da3f127e9d2abdb359516d079fc038a4c2a3 (diff)
downloadvolse-hubzilla-9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.tar.gz
volse-hubzilla-9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.tar.bz2
volse-hubzilla-9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.zip
Change main router request variable from 'q' to 'req'. This is necessary to implement search in the twitter api addon, because twitter requires use of the variable 'q'.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess6
1 files changed, 3 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index 3420313a5..7a265eda1 100644
--- a/.htaccess
+++ b/.htaccess
@@ -20,15 +20,15 @@ AddType audio/ogg .oga
RewriteRule "(^|/)\.git" - [F]
RewriteRule "(^|/)store" - [F]
- # Rewrite current-style URLs of the form 'index.php?q=x'.
+ # Rewrite current-style URLs of the form 'index.php?req=x'.
# Also place auth information into REMOTE_USER for sites running
# in CGI mode.
RewriteCond %{REQUEST_URI} ^/\.well\-known/.*
- RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+ RewriteRule ^(.*)$ index.php?req=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+ RewriteRule ^(.*)$ index.php?req=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
</IfModule>