Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
206 views
in Q2A Core by

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>

How to redirect urls

http://www.example.com/index.php/example/... to http://www.example.com/example/...
http://www.example.com/qa/example/... to http://www.example.com/example/...
and
http://www.example.com/questions/example/... to http://www.example.com/example/...

 

Please log in or register to answer this question.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...