Greetings.
I am facing an issue with removing index.php from the urls of the created pages for a bedrock project.
The .conf files for apache2 and the site are these:
apache2.conf part
<Directory /home/constantineblack/Constantine/Dev/Projects/usdl/usdl/web>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
usdl.conf
<VirtualHost *:8001>
DocumentRoot /home/constantineblack/Constantine/Dev/Projects/usdl/usdl/web
DirectoryIndex index.php index.html index.htm
<Directory /home/constantineblack/Constantine/Dev/Projects/usdl/usdl/web>
Options -Indexes
# .htaccess isn't required if you include this
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
</Directory>
Also, I have added a .htaccess in /web folder
BEGIN WordPress
RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPressBut still, when I am visiting a page, I get the index.php in front of the url, like:
http://localhost:8001/index.php/some-page/
Is there a way to check what I may be doing wrong or something I should be doing in a different manner? Thank you.