[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-21-2008, 02:15 PM   #1 (permalink)
NamePros Regular
 
Zubair1's Avatar
 
Join Date: Mar 2005
Posts: 874
159.45 NP$ (Donate)

Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice

AIDS/HIV
Help! [SEO-ing] - PHP Method Need Help!



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,
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Games and Songs || eBloggy.net
Zubair.info || Mixcat Interactive
Zubair1 is offline  
Old 02-22-2008, 10:04 AM   #2 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
it is a long shit but try:-

PHP Code:
<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.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 02-24-2008, 11:27 AM   #3 (permalink)
NamePros Regular
 
Zubair1's Avatar
 
Join Date: Mar 2005
Posts: 874
159.45 NP$ (Donate)

Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice

AIDS/HIV
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
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Games and Songs || eBloggy.net
Zubair.info || Mixcat Interactive
Zubair1 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:22 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85