Search Engine-Friendly URLs

Hi,

I do have a problem with the PATH_INFO and the mod_rewrite solutions.

The problem is in both cases the same:

when I access
mysite.com/index.php/whatever/url

and on that generated page their is some code like
<a href=“/whatever/anotherurl”> My browser points that to /whatever/whatever/anotherurl. The same for src=“/…” with images and css/javascript files. (The browser thinks we are in the directory /whatever while in fact we are in the / directory.)

Ofcourse this renders my site usable. What am I doing wrong?

Use <keyword>.html for better search engine ranking results
Search engine looks at /words/another/word/
as a directory structure and will find “word” at the last as least important

lClbLj hi! this is

Hello,

Thanks for this article! very helpful…however, with the ForceType directive, I lose all the formatting and styling on my script page. Can this be fixed?

Thanks for this information …uts very userfull…

Check your image and stylesheet include URLs, make them absolute instead of relative. That is likely the cause of your problem.

ForceType doesn’t seems to work (apache 2.2 / php 5.1.6)

i tried


<Files tag> 
    #ForceType application/x-httpd-php 
    #SetHandler application/x-httpd-php 
    #SetHandler application/x-httpd-php5 
    #ForceType x-httpd-php 
    #ForceType application/x-httpd-php5 
    #AddHandler application/x-httpd-php5 .php
    ForceType php5-cgi
</Files> 

Any more suggestions?

Hm. Solution 3 does not seem to work for me either (apache 2.2, PHP 5.2.9, WindowsXPSP3).

I’ve put the 3 lines in .htaccess, created a “test” file with only “<?php phpinfo(); ?>” in that same directory, but I keep getting that exact text instead of the PHP info.

Hello … I implemented method 2 but for some strange reason google didn’t index my pages? Is it really safe to implement it. It only indexed the home page and some pages with a .php extension

site:ad-traxx.com