Kindly, replace you PHP hiding script with this script..... When a user will type a URL with PHP extension. At the mean time it will be redirected to extensionless URL,,,, For example; From "index.php" to "index". RewriteEngine on RewriteEngine On # Redirect from .php to extensionless URL RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/(.+)\.php [NC] RewriteRule ^ /%1 [R=301,L] # Rewrite extensionless URL to actual .php file RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^([^\.]+)$ $1.php [NC,L]
Sir please tell me if I go for details page through title and I want title as URL without detail-page.php then what will I do for .....for ex. I am on blog.php page which have dynamic link like blog-detail.php? title= And I want to show title only in URL ...... please sir tell me
Thanks for your tutorial. I have my project folder as(inventory), inside inventroy folder, i have another folder as (includes). Inside the includes folder, i have navigation file or menu file. Now i have eg. home.php inside the inventory folder. So how i can play with my .htaccess file?
This is very use full video but i have one doubt how to pass parameter in dynamically in header location for ex : (window.location='demo.php?id=') but i need solutions for : ( demo/1 ) give me the solutions for this question.
Step. 1 Create `.htaccess` file in that folder where your all website files are located. Step. 2 Edit your `.htaccess` file and paste the following script into the `.htaccess` file.. RewriteEngine on RewriteEngine On # Redirect from .php to extensionless URL RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/(.+)\.php [NC] RewriteRule ^ /%1 [R=301,L] # Rewrite extensionless URL to actual .php file RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^([^\.]+)$ $1.php [NC,L]
I just subscribe your channel and liked your video..I generally do not do this..but your video was very helpful to me..Alhamdulillah
Thanks and welcome
Thanks it solved my purpose.Nicely explained.
How to set
when hit url
localhost/about.php to localhost/about
Because if we hit localhost/about.php it is doesn't change to localhost/about
Thank`s man, you save my life !!!
great work and thank you for this video keep it up bro
Thank you, works perfectly.
first RewriteRule is working ,,,the second one is not working..suggest me...
very clear instructions. thx
Nice bro 😁 tnx keep sharing
Nicely explained!
Could you just post something where we can restrict the actual page name if typed in the url
Kindly, replace you PHP hiding script with this script..... When a user will type a URL with PHP extension. At the mean time it will be redirected to extensionless URL,,,, For example; From "index.php" to "index".
RewriteEngine on
RewriteEngine On
# Redirect from .php to extensionless URL
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/(.+)\.php [NC]
RewriteRule ^ /%1 [R=301,L]
# Rewrite extensionless URL to actual .php file
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
Thank you so...................much.
Very Helpful! Thanks
Thank you very much..man
Thank u soooooooooo much....... Love you
Thank you, friend
Sir please tell me if I go for details page through title and I want title as URL without detail-page.php then what will I do for .....for ex. I am on blog.php page which have dynamic link like blog-detail.php? title= And I want to show title only in URL ...... please sir tell me
thank you sir
Amazing big like and subscrube
❤❤
Thanks for your tutorial. I have my project folder as(inventory), inside inventroy folder, i have another folder as (includes). Inside the includes folder, i have navigation file or menu file. Now i have eg. home.php inside the inventory folder. So how i can play with my .htaccess file?
Done subscribed to your channel
Thanks
how to remove image/ from url
This is very use full video but i have one doubt how to pass parameter in dynamically in header location for ex : (window.location='demo.php?id=') but i need solutions for : ( demo/1 ) give me the solutions for this question.
brother when i passing parameter is showing request url not found can u provide the solution
Step. 1
Create `.htaccess` file in that folder where your all website files are located.
Step. 2
Edit your `.htaccess` file and paste the following script into the `.htaccess` file..
RewriteEngine on
RewriteEngine On
# Redirect from .php to extensionless URL
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/(.+)\.php [NC]
RewriteRule ^ /%1 [R=301,L]
# Rewrite extensionless URL to actual .php file
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
why not woking to my code
Plz upload video image crop and upload with php and jquery