: Routing URLs .htaccess file problem When I click any link on my website it will show only the home page. http://example.com/article-rewriter When I add ?route=, the URL is correct: http://example.com/?route=article-rewriter/
When I click any link on my website it will show only the home page.
example.com/article-rewriter
When I add ?route=, the URL is correct:
example.com/?route=article-rewriter/
How can I solve it for all URLs at the same time.
This is my .htaccess file content:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php?/[CO] [PT,L]
More posts by @Shakeerah822
1 Comments
Sorted by latest first Latest Oldest Best
RewriteRule .* index.php?/[CO] [PT,L]
If the actual URL requires the route URL parameter then it would seem that you simply need to include this in the RewriteRule substitution? So, try the following instead:
RewriteRule .* index.php?route=[CO] [L]
Note also that the PT flag is not required in a per-directory context.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.