The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> htaccess problem
jar17
post Feb 4 2025, 08:43 AM
Post #1


Member
***

Group: Members
Posts: 33
Joined: 10-August 20
Member No.: 27,482



Hi
I have little problem with .htaccess files
I found this code that hides the php on pages:

CODE

RewriteEngine on


RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]


and it seems to work well

but then i tried using projectSend in my website and the login didnt work so i figured htaccess may be the problem so to test I deleted .htaccess and yep the login started working

so to fix this I created new .htaccess file in the projectSend folder with only this in it:

CODE

RewriteEngine on


and that seems to fix it also

but I dont really understand these commands so I have to ask how good is my solution and how to improve it if necessary?

thx!

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jar17
post Feb 6 2025, 03:35 PM
Post #2


Member
***

Group: Members
Posts: 33
Joined: 10-August 20
Member No.: 27,482



Thx for letting me know my solution wasnt too bad after all biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th February 2025 - 06:57 PM