Use this:Hello everyone as the title says i want to remove index.url? from my url i tried this in htaccess but it doesnt work still
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^/folder/(.*) /folder/index.php?name=$1
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
The code didnt work, but i also forgot to mention thatUse this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php </IfModule>
Try this. Don't know if this will work as I have not tried it but it should work:The code didnt work, but i also forgot to mention that
my website has url structure that looks like this
How do i remove this part of the url "index.php?name=" so it looks like this
The passed value (asdasdasd) sometimes also contain these symbols ( . ) or ( - ) or ( _ ) so it will look like this (asd.asdasd) or (asdasd_asd) you get my point
Thank you very much if anyone can help![]()
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^folder/([-\w]+) folder/index.php?name=$1 [NC,L]
</IfModule>