[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 08-23-2007, 11:11 AM   #1 (permalink)
NamePros Regular
 
JaxForum's Avatar
 
Join Date: Dec 2005
Posts: 337
36.81 NP$ (Donate)

JaxForum will become famous soon enoughJaxForum will become famous soon enough


htaccess help please. my site is jacked up

I'm trying to fix my site http://www.layoutpimps.net It is so weird

for example.

http://www.layoutpimps.net/friends does work
http://www.layoutpimps.net/friends/index.php reroutes back to the homepage
http://www.layoutpimps.net/friends/ reroutes back to the homepage

Currently, I have this in my htaccess
ErrorDocument 404 /index.php

so thats why http://www.layoutpimps.net/friends/ reroutes back to the homepage.

This site is a complete mess in Google's eyes. Why is it if you add a / or a /index.php are the URLs considered 404 errors?

All three of those links need to go to the same place and be considered the same URL.

Is there anything I can add to my htaccess to fix this problem? It does it to all my URLs and it's been like this for a year! I just now noticed it.
__________________
Read My Blog - http://www.lithman.net
JaxForum is offline  
Old 08-23-2007, 02:00 PM   #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
is that the complete content of the htaccess file?
Do you do any rerouting in the php script itself?
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 08-24-2007, 07:12 AM   #3 (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
ok just received your pm

http://www.layoutpimps.net/friends/index.php is rerouting back to the home page as you are not catching it anywhere. I presume this file is not actually a real file. This being the case the 404 line is dealing with this. If you wish to change this behaviour you need to create a line to catch this URL

Regarding http://www.layoutpimps.net/friends working and http://www.layoutpimps.net/friends/ not working this is because you are only catching in the htaccess without the slash in the following line

RewriteRule ^friends$ index.php?app=friends [L]

if you wish to catch both change it to the following:-

RewriteRule ^friends(/)?$ index.php?app=friends [L]

this makes the slash optional (hence the ?).
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 09-05-2007, 06:25 AM   #4 (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
never heard back did this 100% fix the problem you had
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter 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 01:17 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