Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
758 views
in Q2A Core by
edited by
Dear Community, I did add a custom page module, which actually works.
 

I did add the page from admin area and called it ="blogpage". Know it works if click on the link, which is looking like that: https://mydomain.com/blogpage. But on this page I ahve some links, which look like like: https://mydomain.com/blogpage/post/1. How can I make this work using htaccess? If I do put in the address bar -> https://mydomain.com/blogpage?post=1 of course it works. But I want to make it look like above.

I tried the following:
 

Options -Indexes

DirectoryIndex index.php

<IfModule mod_rewrite.c>

RewriteEngine On

#RewriteBase /

RewriteRule ^blogpage/post/([0-9]+)/?$   index.php?qa=blogpage&post=$1     [NC]

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>

Unfortunately all the css, javascript files of the theme wont be visible afterwards

How to do it right?

Please log in or register to answer this question.

...