<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Search results for htaccess</title>
<link>https://www.question2answer.org/qa/search?q=htaccess</link>
<description>Powered by Question2Answer</description>
<item>
<title>Issue with .htaccess where Q2A wouldn't ok the first url structure in Admin Panel.</title>
<link>https://www.question2answer.org/qa/115003/issue-with-htaccess-where-wouldnt-first-structure-admin-panel?show=115003#q115003</link>
<description>

&lt;p&gt;After searching on here for a solution to my problem, I found that other people was having the same issue. There wasn't an answer that worked for me. I have found a solution for me and maybe this solution would work for others.&lt;/p&gt;

&lt;p&gt;The original .htaccess file:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;Options -Indexes
&lt;br&gt;DirectoryIndex index.php
&lt;br&gt;
&lt;br&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteEngine On
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #RewriteBase /
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteRule . %1/%2 [R=301,L]
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]
&lt;br&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I have added the following to my .htaccess:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;Options -Indexes
&lt;br&gt;DirectoryIndex index.php
&lt;br&gt;
&lt;br&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteEngine On
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Uncomment the next line if needed, typically for subdirectory setups
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteBase /
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Remove double slashes in the URL
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteCond %{REQUEST_URI} ^(.)//(.)$
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteRule . %1/%2 [R=301,L]
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check if the request is not a file or a directory
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Rewrite all other requests to index.php
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteRule ^(.*)$ index.php?qa-rewrite=$1&amp;amp;%{QUERY_STRING} [L,QSA]
&lt;br&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The only issue with this fix is that while in the admin area, Q2A still doesn't ok the first url structure option. I am not sure why, but at least I have fixed my issue. Maybe this fix will help others!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/115003/issue-with-htaccess-where-wouldnt-first-structure-admin-panel?show=115003#q115003</guid>
<pubDate>Fri, 04 Oct 2024 15:29:43 +0000</pubDate>
</item>
<item>
<title>share me your htaccess why in my website ok don't show</title>
<link>https://www.question2answer.org/qa/114215/share-me-your-htaccess-why-in-my-website-ok-dont-show?show=114215#q114215</link>
<description>

&lt;p&gt;&quot;I tried to look up questions about the .htaccess file and okay with the link structure before asking, but I couldn't solve the problem. So, I wanted to share it with you and seek your help.&quot;
&lt;br&gt;this is my htaccess file&lt;/p&gt;

&lt;p&gt;Options -Indexes&lt;/p&gt;

&lt;p&gt;DirectoryIndex index.php&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteEngine On&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; # Redirect HTTP to HTTPS&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{HTTPS} off&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; # Existing rules&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteRule ^(.*)$ index.php?qa-rewrite=$1 [B,L]&lt;/p&gt;

&lt;p&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;share me your htaccess why in my website ok don't show&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=11116369989875598799&quot; style=&quot;height:131px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/114215/share-me-your-htaccess-why-in-my-website-ok-dont-show?show=114215#q114215</guid>
<pubDate>Thu, 18 Jul 2024 10:49:52 +0000</pubDate>
</item>
<item>
<title>Help in correcting or adjusting the htaccess file</title>
<link>https://www.question2answer.org/qa/110997/help-in-correcting-or-adjusting-the-htaccess-file?show=110997#q110997</link>
<description>

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=4217706716644574076&quot; style=&quot;float:left; height:166px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Why does the OK mark not appear in front of the structure you chose from the .htaccess file, which is detailed as follows:&lt;/p&gt;

&lt;p&gt;******************************&lt;/p&gt;

&lt;p&gt;# Redirect to www and HTTPS&lt;/p&gt;

&lt;p&gt;RewriteEngine On&lt;/p&gt;

&lt;p&gt;RewriteCond %{HTTPS} off [OR]&lt;/p&gt;

&lt;p&gt;RewriteCond %{HTTP_HOST} !^www\. [NC]&lt;/p&gt;

&lt;p&gt;RewriteRule ^ &lt;a href=&quot;https://www.examplesite.com&quot; rel=&quot;nofollow&quot;&gt;https://www.examplesite.com&lt;/a&gt;%{REQUEST_URI} [L,NE,R=301]&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;# In order for the web server to process this file it must be renamed to &quot;.htaccess&quot;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Options -Indexes&lt;/p&gt;

&lt;p&gt;DirectoryIndex index.php&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RewriteEngine On&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#RewriteBase /&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RewriteCond %{REQUEST_URI} ^(.*)//(.*)$&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RewriteRule. %1/%2 [R=301,L]&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RewriteCond %{REQUEST_FILENAME} !-f&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RewriteCond %{REQUEST_FILENAME} !-d&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]&lt;/p&gt;

&lt;p&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;

&lt;p&gt;**************************&lt;/p&gt;

&lt;p&gt;Can anyone help me solve this problem, and is there a problem with htaccess, knowing that I am not a programmer?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/110997/help-in-correcting-or-adjusting-the-htaccess-file?show=110997#q110997</guid>
<pubDate>Fri, 20 Oct 2023 19:42:10 +0000</pubDate>
</item>
<item>
<title>What Will Be The Rule For .htaccess and nginx URL Rewrite</title>
<link>https://www.question2answer.org/qa/100741/what-will-be-the-rule-for-htaccess-and-nginx-url-rewrite?show=100741#q100741</link>
<description>

&lt;p&gt;I want to install Q2A on Subdomain Subdirectory &lt;strong&gt;(&lt;a href=&quot;https://subdomain.xyz.com/qa&quot; rel=&quot;nofollow&quot;&gt;https://subdomain.xyz.com/qa&lt;/a&gt;)&lt;/strong&gt; Or, Only main domain subdirectory &lt;strong&gt;(Like &lt;a href=&quot;https://abc.com/qa&quot; rel=&quot;nofollow&quot;&gt;https://abc.com/qa&lt;/a&gt;)&lt;/strong&gt;. Everything works fine but first URL structure which require &lt;strong&gt;.htaccess&lt;/strong&gt; not working.&lt;/p&gt;

&lt;p&gt;What should be the &lt;strong&gt;.htaccess&lt;/strong&gt; and &lt;strong&gt;Nginx Conf. Rule&lt;/strong&gt; for first URL structire for working.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/100741/what-will-be-the-rule-for-htaccess-and-nginx-url-rewrite?show=100741#q100741</guid>
<pubDate>Wed, 13 Apr 2022 10:13:00 +0000</pubDate>
</item>
<item>
<title>problem with htaccess file and URL structure and ok icon not active</title>
<link>https://www.question2answer.org/qa/112002/problem-with-htaccess-file-and-url-structure-and-icon-active?show=112002#q112002</link>
<description>

&lt;p&gt;Welcome&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;I have a problem that has exhausted me and affected my site greatly, especially in the archiving aspect, and it is almost in the .htaccess file. This problem appeared when I updated the q2a script to version v 1.8.8.&lt;/p&gt;

&lt;p&gt;In the previous version, it worked perfectly&lt;/p&gt;

&lt;p&gt;Now when I modify the URL structure to the first option, the following occurs:&lt;/p&gt;

&lt;p&gt;First: the OK sign does not appear&lt;/p&gt;

&lt;p&gt;Second: When clicking on some links, such as members and sections, an error 403 Status code: 403 - Forbidden appears. Only when clicking on some links in particular that are in Arabic, such as the names of users in Arabic, as for users in English, this error does not appear, but the click works normally.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Attached are screenshots of the problem before and after and the page that shows the 403 error&lt;/p&gt;

&lt;p&gt;I also attached the .htaccess file that I use on my site&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=492972529025512712&quot; style=&quot;height:126px; width:600px&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=14121365383970742267&quot; style=&quot;height:173px; width:586px&quot;&gt;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=8694314498997194499&quot; style=&quot;height:126px; width:600px&quot;&gt;&lt;span style=&quot;color:#000000&quot;&gt;# In order for the web server to process this file it must be renamed to &quot;.htaccess&quot;&lt;/span&gt;&lt;/p&gt;

&lt;pre&gt;Options -Indexes
DirectoryIndex index.php

&amp;lt;IfModule mod_rewrite.c&amp;gt;
    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&amp;amp;%{QUERY_STRING} [L]
&amp;lt;/IfModule&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;I apologize for not being familiar with the problem and its solution. I am not a programmer and I hope you can help me. I have tried to search for the same problem or the same question, but I have not been able to solve the problem yet.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/112002/problem-with-htaccess-file-and-url-structure-and-icon-active?show=112002#q112002</guid>
<pubDate>Fri, 12 Jan 2024 20:59:59 +0000</pubDate>
</item>
<item>
<title>The website is running on nginx and there is an error in the htaccess file</title>
<link>https://www.question2answer.org/qa/111918/the-website-running-nginx-and-there-error-the-htaccess-file?show=111918#q111918</link>
<description>

&lt;p style=&quot;direction: ltr;&quot;&gt;The website is running on nginx and there is an error in the htaccess file&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;I am trying to implement what is in this question [&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.question2answer.org/qa/43081/the-correct-rule-of-rewrite-for-nginx&quot;&gt;The correct rule of rewrite for nginx&lt;/a&gt;], but when entering the &lt;a rel=&quot;nofollow&quot; href=&quot;https://test.mtalm.com/ask&quot;&gt;ask&lt;/a&gt; page, it does not work&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;Please help modify this Vhost code&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;server {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; listen 80;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; listen [::]:80;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; listen 443 ssl http2;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; listen [::]:443 ssl http2;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{ssl_certificate_key}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{ssl_certificate}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; server_name test.mtalm.com;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{root}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{nginx_access_log}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{nginx_error_log}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; if ($scheme != &quot;https&quot;) {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; rewrite ^ https://$host$uri permanent;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; location ~ /.well-known {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; auth_basic off;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; allow all;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{settings}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; location / {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; {{varnish_proxy_pass}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_set_header Host $http_host;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_set_header X-Forwarded-Host $http_host;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_set_header X-Real-IP $remote_addr;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_hide_header X-Varnish;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_redirect off;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_max_temp_file_size 0;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_connect_timeout&amp;nbsp; &amp;nbsp; &amp;nbsp; 720;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_send_timeout&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;720;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_read_timeout&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;720;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_buffer_size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 128k;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_buffers&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 256k;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_busy_buffers_size&amp;nbsp; &amp;nbsp; 256k;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; proxy_temp_file_write_size 256k;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; add_header Access-Control-Allow-Origin &quot;*&quot;;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; expires max;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; access_log off;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; if (-f $request_filename) {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; break;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;server {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; listen 8080;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; listen [::]:8080;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; server_name test.mtalm.com;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; {{root}}&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; try_files $uri $uri/ /index.php?$args;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; index index.php index.html;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; location ~ \.php$ {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; include fastcgi_params;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_intercept_errors on;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_index index.php;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; try_files $uri =404;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_read_timeout 3600;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_send_timeout 3600;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_param HTTPS &quot;on&quot;;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_param SERVER_PORT 443;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_pass 127.0.0.1:{{php_fpm_port}};&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; fastcgi_param PHP_VALUE &quot;{{php_settings}}&quot;;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; if (-f $request_filename) {&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; &amp;nbsp; break;&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;&amp;nbsp; }&lt;/p&gt;

&lt;p style=&quot;direction: ltr;&quot;&gt;}&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/111918/the-website-running-nginx-and-there-error-the-htaccess-file?show=111918#q111918</guid>
<pubDate>Sat, 06 Jan 2024 06:52:03 +0000</pubDate>
</item>
<item>
<title>whats the best htaccess file rules</title>
<link>https://www.question2answer.org/qa/99774/whats-the-best-htaccess-file-rules?show=99774#q99774</link>
<description>

&lt;p style=&quot;direction: ltr;&quot;&gt;whats the best htaccess file rules that should I&amp;nbsp;use it in my website
&lt;br&gt;
&lt;br&gt;I`m confused because I read a lot of question and different&amp;nbsp;answers&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/99774/whats-the-best-htaccess-file-rules?show=99774#q99774</guid>
<pubDate>Mon, 21 Feb 2022 14:54:49 +0000</pubDate>
</item>
<item>
<title>What will be the .htaccess rule for subfolder/subdirectory.</title>
<link>https://www.question2answer.org/qa/101786/what-will-be-the-htaccess-rule-for-subfolder-subdirectory?show=101786#q101786</link>
<description>

&lt;p style=&quot;text-align: justify;&quot;&gt;I have already installed q2a on main domain. but, now I&amp;nbsp;installed q2a on sub-directory like &lt;a rel=&quot;nofollow&quot; href=&quot;http://informesia.com/wiki&quot;&gt;informesia.com/wiki&lt;/a&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;for different&amp;nbsp;language.&lt;/p&gt;

&lt;p style=&quot;text-align: justify;&quot;&gt;Everything works fine, but first url structure (/123/why-do-birds-sing (requires&amp;nbsp;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/htaccess.php&quot;&gt;htaccess&lt;/a&gt;&amp;nbsp;file) not working. What will be the .htaccess rule for subfolder/subdirectory.&lt;/p&gt;

&lt;p style=&quot;text-align: justify;&quot;&gt;Please help.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/101786/what-will-be-the-htaccess-rule-for-subfolder-subdirectory?show=101786#q101786</guid>
<pubDate>Thu, 16 Jun 2022 03:55:10 +0000</pubDate>
</item>
<item>
<title>htaccess file error</title>
<link>https://www.question2answer.org/qa/100014/htaccess-file-error?show=100014#q100014</link>
<description>

&lt;p&gt;Can it be fixed in htaccess&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=12935555885395596255&quot; style=&quot;height:1267px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/100014/htaccess-file-error?show=100014#q100014</guid>
<pubDate>Sun, 06 Mar 2022 10:30:03 +0000</pubDate>
</item>
<item>
<title>/123/why-do-birds-sing [File required htaccess] what it means File required htaccess</title>
<link>https://www.question2answer.org/qa/92645/birds-sing-file-required-htaccess-means-required-htaccess?show=92645#q92645</link>
<description></description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/92645/birds-sing-file-required-htaccess-means-required-htaccess?show=92645#q92645</guid>
<pubDate>Tue, 27 Apr 2021 10:30:50 +0000</pubDate>
</item>
<item>
<title>Rewrite none www to www htaccess</title>
<link>https://www.question2answer.org/qa/68074/rewrite-none-www-to-www-htaccess?show=68074#q68074</link>
<description>

&lt;p&gt;Here is my current .htaccess, Apache version&amp;nbsp;&lt;span style=&quot;background-color:rgb(252, 252, 252); color:rgb(79, 88, 96); font-family:open sans,sans-serif; font-size:14px&quot;&gt;2.4.34 my www.satechhelp.co.za&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;DirectoryIndex index.php
&lt;br&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
&lt;br&gt;RewriteEngine On
&lt;br&gt;#RewriteBase /
&lt;br&gt;RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
&lt;br&gt;RewriteRule . %1/%2 [R=301,L]
&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-f
&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-d
&lt;br&gt;RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]
&lt;br&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/68074/rewrite-none-www-to-www-htaccess?show=68074#q68074</guid>
<pubDate>Wed, 10 Oct 2018 08:52:17 +0000</pubDate>
</item>
<item>
<title>How to solve htaccess redirect issue?</title>
<link>https://www.question2answer.org/qa/89752/how-to-solve-htaccess-redirect-issue?show=89752#q89752</link>
<description>

&lt;p&gt;Please help me.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I have this in .htaccess file:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;# In order for the web server to process this file it must be renamed to &quot;.htaccess&quot;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Options -Indexes&lt;/p&gt;

&lt;p&gt;DirectoryIndex index.php&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteEngine On&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; #RewriteBase /&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_URI} ^(.*)//(.*)$&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteRule . %1/%2 [R=301,L]&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]&lt;/p&gt;

&lt;p&gt;&amp;lt;/IfModule&amp;gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Redirect 301 /one /two&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I'm getting this result in the URL:&amp;nbsp;&lt;strong&gt;/?qa-rewrite=one&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When i create dummy php files in the root: test.php and test2.php, redirection works from one file&amp;nbsp;to the other one without problem.&lt;/p&gt;

&lt;p&gt;&lt;em style=&quot;font-family:Georgia,Times,&amp;quot;Times New Roman&amp;quot;,serif; font-style:italic&quot;&gt;How can I&amp;nbsp; solve this issue?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/89752/how-to-solve-htaccess-redirect-issue?show=89752#q89752</guid>
<pubDate>Mon, 14 Dec 2020 18:23:55 +0000</pubDate>
</item>
<item>
<title>https, htaccess and broken links</title>
<link>https://www.question2answer.org/qa/74048/https-htaccess-and-broken-links?show=74048#q74048</link>
<description>

&lt;p&gt;I moved to https secure system.&amp;nbsp;But then I'm having trouble with link redirects.&lt;/p&gt;

&lt;p&gt;My .htaccess file,&lt;/p&gt;

&lt;pre&gt;Options -Indexes
DirectoryIndex index.php
&amp;lt;IfModule mod_rewrite.c&amp;gt;
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]
&amp;lt;/IfModule&amp;gt;

RewriteEngine On
RewriteCond %{HTTP_HOST} ruyadaruya\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ruyadaruya.com/$1 [R,L]&lt;/pre&gt;

&lt;p&gt;Example,&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.ruyadaruya.com/hareketler&quot; rel=&quot;nofollow&quot;&gt;http://www.ruyadaruya.com/hareketler&lt;/a&gt; (broken link, direction 404)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.ruyadaruya.com/hareketler&quot; rel=&quot;nofollow&quot;&gt;https://www.ruyadaruya.com/hareketler&lt;/a&gt; (good link, no problem.)&lt;/p&gt;

&lt;p&gt;How can I fix external links using the htaccess file?&lt;/p&gt;

&lt;p&gt;(I've looked at the other questions and tried methods. But i cant solved)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/74048/https-htaccess-and-broken-links?show=74048#q74048</guid>
<pubDate>Wed, 10 Apr 2019 09:16:46 +0000</pubDate>
</item>
<item>
<title>first OK option is not available when I installed my website in /q2a/ directory, How to solve this ?</title>
<link>https://www.question2answer.org/qa/114353/first-option-available-installed-website-directory-solve?show=114353#q114353</link>
<description>

&lt;p&gt;first OK option is not available when I installed my website in /q2a/ directory, How to solve this ?&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=15886911401906848604&quot; style=&quot;height:275px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/114353/first-option-available-installed-website-directory-solve?show=114353#q114353</guid>
<pubDate>Thu, 01 Aug 2024 07:59:07 +0000</pubDate>
</item>
<item>
<title>Redirect HTTP to HTTPS,  URL structure option 1, no customized htaccess file</title>
<link>https://www.question2answer.org/qa/56852/redirect-http-https-structure-option-customized-htaccess?show=56852#q56852</link>
<description>

&lt;pre&gt;How to redirect HTTP to HTTPS when using default (URL Structure option 1 chosen) htaccess file?

URL structure:
/123/why-do-birds-sing (requires&amp;nbsp;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/htaccess.php&quot;&gt;htaccess&lt;/a&gt;&amp;nbsp;file)&lt;span style=&quot;font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;&lt;/span&gt;

My .htaccess file:

Options -Indexes
DirectoryIndex index.php
&amp;lt;IfModule mod_rewrite.c&amp;gt;
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&amp;amp;%{QUERY_STRING} [L]
&amp;lt;/IfModule&amp;gt;&lt;/pre&gt;

&lt;pre&gt;
&lt;/pre&gt;

&lt;pre&gt;
&lt;/pre&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/56852/redirect-http-https-structure-option-customized-htaccess?show=56852#q56852</guid>
<pubDate>Tue, 21 Mar 2017 11:06:25 +0000</pubDate>
</item>
<item>
<title>Please help me Mark (OK) does not appear in the first option in my website</title>
<link>https://www.question2answer.org/qa/108864/please-help-me-mark-does-not-appear-the-first-option-website?show=108864#q108864</link>
<description>

&lt;p&gt;Mark (OK) does not appear in the first option in my website&lt;/p&gt;

&lt;p&gt;htaccess is working on my site but there is no OK in URL structure&lt;/p&gt;

&lt;p&gt;Is there anything the hosting provider can do?&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=2465201803461487622&quot; style=&quot;height:177px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/108864/please-help-me-mark-does-not-appear-the-first-option-website?show=108864#q108864</guid>
<pubDate>Tue, 20 Jun 2023 19:52:11 +0000</pubDate>
</item>
<item>
<title>htaccess redirect pretty url problem</title>
<link>https://www.question2answer.org/qa/62946/htaccess-redirect-pretty-url-problem?show=62946#q62946</link>
<description>

&lt;p style=&quot;text-align:left&quot;&gt;I am using the redirect HTTP to HTTPS with /123/why-do-birds-sing (requires&amp;nbsp;htaccess&amp;nbsp;file) URL structure&lt;/p&gt;

&lt;p style=&quot;text-align:left&quot;&gt;The redirect work good with www (&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.tshuva2sheela.com/&quot;&gt;https://www.tshuva2sheela.com/&lt;/a&gt;) in Firefox and crhome. But the redirect does not work without www (&lt;a rel=&quot;nofollow&quot; href=&quot;https://tshuva2sheela.com/&quot;&gt;https://tshuva2sheela.com/&lt;/a&gt;) in Firefox but work in chrome.&lt;/p&gt;

&lt;p style=&quot;text-align:left&quot;&gt;My htaccess file:&lt;/p&gt;

&lt;p&gt;Options -Indexes
&lt;br&gt;DirectoryIndex index.php&lt;/p&gt;

&lt;p&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
&lt;br&gt;RewriteEngine On&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;#RewriteBase /
&lt;br&gt;RewriteRule ^(files)($|/) - [L]
&lt;br&gt;RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
&lt;br&gt;RewriteRule . %1/%2 [R=301,L]
&lt;br&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;
&lt;br&gt;RewriteCond %{HTTPS} off&amp;nbsp;
&lt;br&gt;RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;RewriteCond %{REQUEST_FILENAME} !-f
&lt;br&gt;RewriteCond %{REQUEST_FILENAME} !-d
&lt;br&gt;RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]
&lt;br&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;

&lt;p&gt;# BEGIN GZIP&amp;nbsp;
&lt;br&gt;&amp;lt;ifmodule mod_deflate.c&amp;gt;&amp;nbsp;
&lt;br&gt;AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript&amp;nbsp;
&lt;br&gt;&amp;lt;/ifmodule&amp;gt;&amp;nbsp;
&lt;br&gt;# END GZIP&lt;/p&gt;

&lt;p style=&quot;text-align:left&quot;&gt;Thank for the help and sorry for my English.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62946/htaccess-redirect-pretty-url-problem?show=62946#q62946</guid>
<pubDate>Sun, 18 Mar 2018 03:04:53 +0000</pubDate>
</item>
<item>
<title>How to add a rewrite rule in htaccess?</title>
<link>https://www.question2answer.org/qa/73254/how-to-add-a-rewrite-rule-in-htaccess?show=73254#q73254</link>
<description>Dear Community, I did add a custom page module, which actually works. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
I did add the page from admin area and called it =&amp;quot;blogpage&amp;quot;. Know it works if click on the link, which is looking like that: &lt;a href=&quot;https://mydomain.com/blogpage&quot; rel=&quot;nofollow&quot;&gt;https://mydomain.com/blogpage&lt;/a&gt;. But on this page I ahve some links, which look like like: &lt;a href=&quot;https://mydomain.com/blogpage/post/1&quot; rel=&quot;nofollow&quot;&gt;https://mydomain.com/blogpage/post/1&lt;/a&gt;. How can I make this work using htaccess? If I do put in the address bar -&amp;gt; &lt;a href=&quot;https://mydomain.com/blogpage?post=1&quot; rel=&quot;nofollow&quot;&gt;https://mydomain.com/blogpage?post=1&lt;/a&gt; of course it works. But I want to make it look like above.&lt;br /&gt;
&lt;br /&gt;
I tried the following:&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Options -Indexes&lt;br /&gt;
&lt;br /&gt;
DirectoryIndex index.php&lt;br /&gt;
&lt;br /&gt;
&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
&lt;br /&gt;
#RewriteBase /&lt;br /&gt;
&lt;br /&gt;
RewriteRule ^blogpage/post/([0-9]+)/?$ &amp;nbsp;&amp;nbsp;index.php?qa=blogpage&amp;amp;post=$1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[NC]&lt;br /&gt;
&lt;br /&gt;
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$&lt;br /&gt;
&lt;br /&gt;
RewriteRule . %1/%2 [R=301,L]&lt;br /&gt;
&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
&lt;br /&gt;
RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately all the css, javascript files of the theme wont be visible afterwards&lt;br /&gt;
&lt;br /&gt;
How to do it right?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/73254/how-to-add-a-rewrite-rule-in-htaccess?show=73254#q73254</guid>
<pubDate>Fri, 08 Mar 2019 01:19:15 +0000</pubDate>
</item>
<item>
<title>I need .htaccess file to force https</title>
<link>https://www.question2answer.org/qa/57411/i-need-htaccess-file-to-force-https?show=57411#q57411</link>
<description>I installed ssl certificate&lt;br /&gt;
&lt;br /&gt;
I need to make the traffic force https by modifying &amp;nbsp;.htaccess 301 or 302 redirect&lt;br /&gt;
&lt;br /&gt;
Please provide me suitable solution</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/57411/i-need-htaccess-file-to-force-https?show=57411#q57411</guid>
<pubDate>Mon, 24 Apr 2017 11:54:41 +0000</pubDate>
</item>
<item>
<title>how to write nginx conf file for url rewrites of Q2A ?</title>
<link>https://www.question2answer.org/qa/112027/how-to-write-nginx-conf-file-for-url-rewrites-of-q2a?show=112027#q112027</link>
<description>how to write nginx conf file for url rewrites of Q2A ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/112027/how-to-write-nginx-conf-file-for-url-rewrites-of-q2a?show=112027#q112027</guid>
<pubDate>Mon, 15 Jan 2024 08:23:08 +0000</pubDate>
</item>
</channel>
</rss>