Skip to main content

PHPLinkDirectory Version 2 Rewrite Mod-Rewrite

Posted in

PHPLinkDirectory (phpLD) is one of the most widely used directory script on the Internet. Over 10,000 websites have been tested using the phpLD script, that works in virtually all PHP hosting environments.

One of main advantage of phpLD is the capability to allow clean URL links. However, it is common that some users, using version 2 of phpLD, might end up not being able to access the sub directories, or more precisely, returns a 404 error. (more)

A rectification method is by including the following texts in the .htaccess file, which is to be saved at the root directory of your phpLD website.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]

Hope that helps most users who use phpLD.

Very helpful

I couldn't find .htaccess before finding your website. This was very helpful! Thanks a lot.

Most Welcome

You're most welcome, Evden. I'm glad that you find this helpful. :)

yes

Thanks just what I was looking for :)

No problem :)

Glad that this is helpful.

Mod rewrite problem

Hi Keith,

I'm having trouble finding a solution to mode rewrite for phpLD integrated with Wordpress.

My directory site is www.b2bplusdirectory.com and the blog is www.b2bplusdirectory.com/blog-articles/.

Whenever I click on a single blog post, it reverts back to the directory site instead of showing the single post I clicked on.

Do you know of a fix? Hope you can help. Thanks.

Manuel

error pages

hi there,
I have a problem that my phplinkdirectory doesnt see the 404 error page. Can you help me on with this one...my website is www.gidso.com.

mod rewrite

Thank you for this help. It is very useful to me in edit my .htaccess. http://www.camalaniugan.com/tnomeralc-web-design-toys/

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options