.htaccess - How to enable/modify phpbb url to work just like html? -


i have installed phpbb 3.1.4 newly.. web urls http:// mydomain.com/viewtopic.php?f=6&p=6#p6 how can force use http:// mydomain.com/mytopics.html

i have tried editing .htaccess still hope less..

my default htaccess

<ifmodule mod_rewrite.c> rewriteengine on  # # uncomment statement below if want make use of # http authentication , not work. # required if example using php via apache cgi. # #rewriterule .* - [e=http_authorization:%{http:authorization},l]  # # following 3 lines rewrite urls passed through front controller # not require app.php in actual url. in other words, controller # default accessed @ /app.php/my/controller, can accessed @ # /my/controller # rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ app.php [qsa,l]  # # if symbolic links not being followed, # uncomment line below. # http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/ # #options +followsymlinks </ifmodule>  # apache 2.4 "order, deny" syntax has been deprecated , moved # module mod_authz_host new module called mod_access_compat (which may # disabled) , new "require" syntax has been introduced mod_authz_host. # conditionally provide both versions, unfortunately apache # not explicitly tell version if module mod_version not # available. in case, check availability of module # mod_authz_core (which should on 2.4 or higher only) best guess. <ifmodule mod_version.c>     <ifversion < 2.4>         <files "config.php">             order allow,deny             deny         </files>         <files "common.php">             order allow,deny             deny         </files>     </ifversion>     <ifversion >= 2.4>         <files "config.php">             require denied         </files>         <files "common.php">             require denied         </files>     </ifversion> </ifmodule> <ifmodule !mod_version.c>     <ifmodule !mod_authz_core.c>         <files "config.php">             order allow,deny             deny         </files>         <files "common.php">             order allow,deny             deny         </files>     </ifmodule>     <ifmodule mod_authz_core.c>         <files "config.php">             require denied         </files>         <files "common.php">             require denied         </files>     </ifmodule> </ifmodule> 

please guide me, how fix this?

update : have tried adding below in htaccess .. no difference

rewriteengine on rewritecond %{request_uri} !\.[a-za-z0-9]{3,4} rewritecond %{request_uri} !/$ rewriterule ^(.*)$ $1.html 

above codes copy pasted from rewrite rule add .html extension

and tried adding

rewritecond %{request_uri} !^.*.php$ rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ $1.html [l,r=301] 

and tried adding (source)

rewritebase /  rewriterule ^(.*)-f([0-9]*)/(.*)-t([0-9]*)-s([0-9]*).html viewtopic.php?f=$2&t=$4&start=$5&%{query_string} [l] rewriterule ^(.*)-f([0-9]*)/(.*)-t([0-9]*).html viewtopic.php?f=$2&t=$4&%{query_string} [l] rewriterule global/(.*)-t([0-9]*).html ./viewtopic.php?f=1&t=$2&%{query_string} [l] rewriterule ^(.*)-f([0-9]*)/index-s([0-9]*).html viewforum.php?f=$2&start=$3&%{query_string} [l] rewriterule ^(.*)-f([0-9]*)/ viewforum.php?f=$2&%{query_string} [l] rewriterule ^(.*)-f([0-9]*) viewforum.php?f=$2&%{query_string} [l] rewriterule ^forum.html index.php?%{query_string} [l] 

just wish share this.. looks there no way using htaccess.. confirmed kevc - support team member phpbb

https://www.phpbb.com/community/viewtopic.php?f=466&t=2319241


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -