| | #1 |
| Digital Marketing Expert Join Date: 2008 Location: Jaipur, Rajasthan, India
Posts: 101
Thanks: 4
Thanked 25 Times in 23 Posts
|
Hi, Working on a client website for promotion and fixing also coding which cause errors on website. We found an htaccess error and not getting that how to fix this issue. So need any htaccess expert guide to fix this issue. https://www.amerrugs.com/about-amer (We can not define our issue without URL so we are adding this URL) Original page of this URL /about-amer.php .... from htaccess we removed .php But issue is when we are adding slash at last of this type of static page like /about-amer/ then its giving internal server error. Htaccess code is as below PHP Code: PHP Code: |
| Save Upto 50% Digital Marketing (SEO, SMO etc.) Budget with Buy Credits Packages Guest Posting Sites List - 10k+ Sites Collection, No PBN , Multiple Niche Markets . | |
| | |
| | #2 |
| New Warrior Member Join Date: 2020 Location: Hammonton, NJ
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
I didn't test this but this should get you onto the right track. RewriteRule !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ ^(.*)/$ $1.php [L,NC] |
| | |
| | #3 |
| New Warrior Member Join Date: 2020 Location: 230 N Maple Avenue Suite B-1-616 Marlton, NJ 08053 United States.
Posts: 21
Thanks: 0
Thanked 7 Times in 7 Posts
|
Yes, you are on the right way you can do it but I checked your website is working fine but anyway.add this, To enforce a trailing-slash policy: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*[^/])$ /$1/ [L,R] # <- for test, for prod use [L,R=301] |
| | |
| | #4 |
| New Warrior Member Join Date: 2020
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
hey there, yeah I had the same problem and I got in touch with my hosting provider to revolve it, did you manage to resolve it also?
|
| | |
| | #5 | |||
| Digital Marketing Expert Join Date: 2008 Location: Jaipur, Rajasthan, India
Posts: 101
Thanks: 4
Thanked 25 Times in 23 Posts
|
![]()
Still waiting for resolution. | |||
| Save Upto 50% Digital Marketing (SEO, SMO etc.) Budget with Buy Credits Packages Guest Posting Sites List - 10k+ Sites Collection, No PBN , Multiple Niche Markets . | ||||
| | |
| Bookmarks |
| Tags |
| error, giving, htaccess, internal, php, remove, slash |
| |