Url Rewriting

Hello. Does infinutyfree support URL Rewriting?
I have tried the following url rewriting, it doesn’t work. (Only the last rule: ).
Leads to 404.

DirectoryIndex index.php index.html index.htm index2.html

ErrorDocument 400 https://bluewinds.rf.gd/e/400.html
ErrorDocument 401 https://bluewinds.rf.gd/e/401.html
ErrorDocument 403 https://bluewinds.rf.gd/e/403.html
ErrorDocument 404 https://bluewinds.rf.gd/e/404.html
ErrorDocument 503 https://bluewinds.rf.gd/e/503.html

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule ^articles/([0-9]+)/([0-9a-zA-Z]+) articles/index.php?title=$2&category=$1

That is if user types:

https://bluewinds.rf.gd/articles/19/T-Rex

He should be taken to directory articles where there is index.php.
Basically:

https://bluewinds.rf.gd/articles/index.php?title=T-Rex&category=19

The htaccess file is located above htdocs folder.

1 Like

Anyways I tried and tested a lot, after which I made it work. Now it works. Thanks. Problem was location of my htaccess.

2 Likes

Thanks for telling us the solution.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.