• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

How to remove index.php? from url

dani26336

New member
May 3, 2021
10
3
3
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
 
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
Use this:

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php </IfModule>
 
If your website is on wordpress go settings>>permalinks>>custom structure >> category + postname
it will resolve the issue
 
Use this:

<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 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 :D

Thank you very much if anyone can help :)
 
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 :D

Thank you very much if anyone can help :)
Try this. Don't know if this will work as I have not tried it but it should work:

<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>
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock