about .htaccess

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Maddie
Forum Newbie
Posts: 3
Joined: Sun May 08, 2016 10:25 am

about .htaccess

Post by Maddie »

Hello friends,
I have .htaccess file and working but just display index.php but other links became invisible.
Navigation is coming but links on mainpage not showing.
How can i solve to this problem.
My htaccess details:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

</IfModule>
Thank you.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: about .htaccess

Post by requinix »

What do you mean links are "invisible" and "not showing"?
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

Re: about .htaccess

Post by thinsoldier »

That is what the current content of your .htaccess does. It makes it so that any request that would have been "404 not found" gets sent to index.php instead, unless it is a file or folder that actually exists.
Warning: I have no idea what I'm talking about.
Maddie
Forum Newbie
Posts: 3
Joined: Sun May 08, 2016 10:25 am

Re: about .htaccess

Post by Maddie »

What can i do for this.
Should i use another rule?
Can you give me some example. After i use .htaccess i can see just navigation slugs and its contents but other links cant be shown.
Thank you
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: about .htaccess

Post by requinix »

The rules are fine. Probably. But you still haven't explained what "invisible" and "not showing" mean.
Maddie
Forum Newbie
Posts: 3
Joined: Sun May 08, 2016 10:25 am

Re: about .htaccess

Post by Maddie »

I mean after aplying .htaccess dynamic navigation links coming however for example
When i enter link did not display. My english isnt well. I struggle to explain. I hope i could.
Post Reply