Welcome to Geeklog, Anonymous Saturday, March 25 2023 @ 06:03 am EDT
Geeklog Forums
Can't Find .htaccess file
Status: offline
winnerdk
Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama

This is probably going to sound dumb, but all of a sudden I can't find the .htaccess file. It should be in the root directory, right? Looks like it's gone missing. I'm digging through all of the directories and still can't find it. The funny thing is that everything seems to work just fine...
Anybody got an idea?
Don
www.panama-guide.com
Anybody got an idea?
Don
www.panama-guide.com
4
4
Quote
Status: offline
winnerdk
Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama

Never mind, I figured it out. I could access the .htaccess file through the root access to the server, but for some reason it did not show up (at all) using FTP or File Manager in CPanel. Whatever. In any case, I fixed my problem.
Don
http://www.panama-guide.com
:kickcan:
Don
http://www.panama-guide.com
:kickcan:
3
4
Quote
Oleg
Anonymous

In CPanel, when opening File Manager, check the box "Show hidden files (dotted files)". It should work
5
1
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
I believe that a default Geeklog installation doesn't have (and need) a .htaccess file.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
6
5
Quote
John
Anonymous

Hi Winnerdk,
Could you please share how you sloved this problem because i'm having the same problem and i don't know what to do.
Thanks
Could you please share how you sloved this problem because i'm having the same problem and i don't know what to do.
Thanks
4
3
Quote
Status: offline
ivy
Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
.htaccess example.
ErrorDocument 404 /404.php
# www.XXX.com
# RewriteEngine on
# RewriteCond %{HTTP_HOST} ^XXX\.com$
# RewriteRule ^(.*)$ http://www.XXX.com/$1 [R=301,L]
# XXX.com
# RewriteEngine on
# RewriteCond %{HTTP_HOST} ^www\.XXX\.com$
# RewriteRule ^(.*)$ http://XXX.com/$1 [R=301,L]
Geeklog Japan https://www.geeklog.jp
ErrorDocument 404 /404.php
# www.XXX.com
# RewriteEngine on
# RewriteCond %{HTTP_HOST} ^XXX\.com$
# RewriteRule ^(.*)$ http://www.XXX.com/$1 [R=301,L]
# XXX.com
# RewriteEngine on
# RewriteCond %{HTTP_HOST} ^www\.XXX\.com$
# RewriteRule ^(.*)$ http://XXX.com/$1 [R=301,L]
Geeklog Japan https://www.geeklog.jp
2
2
Quote
All times are EDT. The time is now 06:03 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content