IT.COM

[SEO-ing] - PHP Method Need Help!

Spaceship Spaceship
Watch
Impact
50
:hi:

I'm trying to SEO my pages for a site, i managed to do it successfully on my personal home web-server, with apache2+php5.

But it doesn't seem to be working, i have been using apache 1.3/php 4.xx
but just upgraded because my host also upgraded it to the same versions.

I'm trying SEO my dynamic php pages, the server is also running on apache2+php5 i am using ForceType so that i hide the .php from the URI

Code:
<FilesMatch "^songs$">
    ForceType application/x-httpd-php
</FilesMatch>

Thats what i have in the .htaccess file

The main problem is when i try to visit my website : http://www.mysite.com/songs/ it gives me a 404 error :(

I heard there was another method to do this on apache 2, cant remember quite correctly but i think it was like adding another directive such as "AcceptPath on" i tried that before posting here but when i do that and access that URL it doesn't display the page instead it shows a download box to download the file it shows it as an unknown-file-type. can't figure it out. i'm sure the code is perfectly fine since it runs on my pc server with the same software versions.

Any ideas or helps would really be appreciated, my guess is that somethings wrong on my host side?

Thank you!
Kind Regards,
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
it is a long shit but try:-

PHP:
<FilesMatch "^songs([/]?)$">
    ForceType application/x-httpd-php
</FilesMatch>

The regular expression would not have worked previously for the URL you gave as it has a / after it which was causing the reg exp to fail.
 
0
•••
Thanks peter :)

But i'm afraid that didn't work out either :( it seems there maybe a problem from the host side, i told the techs about it and they emailed cPanel to assist them.

I just hope it all works out :(
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back