Menu
  • HOME
  • TAGS

Redirecting HTTP to HTTPS correctly in Question2Answer script

apache,.htaccess,mod-rewrite,redirect,question2answer

This is because you need all of your redirect rules before any of the routing rules (the ones without the R flag), so: DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' RewriteRule ^(.*)$ https://example.com/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}...

Use Drupal search to search Q2A and PHPBB content

php,html,drupal,phpbb,question2answer

You can integrate them all to use a single userbase (and/or search index) for sure. However, unless you find a ready bridge that accommodates them all, you will need to: study each application's databases and map the way they store users and data, build hooks into the source code on...

how to change url structure with 301 code q2a

php,.htaccess,redirect,http-status-code-301,question2answer

I used these and It seems work fine : DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^users/?$ /index.php?qa=users [R=301,L] RewriteRule ^tags/?$ /index.php?qa=tags [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/qa-theme/.* RewriteCond %{REQUEST_URI} !^/qa-content/.* RewriteCond %{REQUEST_URI} !^/analytic/.* RewriteCond %{REQUEST_URI} !^/qa-plugin/.* RewriteCond %{REQUEST_URI} !^/help_files/.* RewriteRule ^(.*)/(.*)/?$...