Is this possible? I want the recent posts to be my homepage, so I have to use the URL with the query.
The recent posts URL is this: http://domainname.com/subfolder/?find-new/posts&recent=1
What I want is: http://domainname.com/ + maintaining the querying page.
What I did:
RewriteEngine On
RewriteBase /subfolder/
RewriteCond %{THE_REQUEST} /\?find-new/posts&recent=1\s [NC]
RewriteRule ^$ /subfolder/? [L,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^$ ?$1?find-new/posts&recent=1 [L,NC,QSA]
Result? It redirects me to http://domainname.com BUT, it does not query and it is not the right page. It shows me the forum page instead of the recent posts.
Is there a workaround for this?
The recent posts URL is this: http://domainname.com/subfolder/?find-new/posts&recent=1
What I want is: http://domainname.com/ + maintaining the querying page.
What I did:
RewriteEngine On
RewriteBase /subfolder/
RewriteCond %{THE_REQUEST} /\?find-new/posts&recent=1\s [NC]
RewriteRule ^$ /subfolder/? [L,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^$ ?$1?find-new/posts&recent=1 [L,NC,QSA]
Result? It redirects me to http://domainname.com BUT, it does not query and it is not the right page. It shows me the forum page instead of the recent posts.
Is there a workaround for this?