View Full Version : Taking off redirects on a directory...


rex_b
08-21-2004, 10:38 AM
I can't figure out how to get the redirects off my directory here
www.religiousdenominations.com

any ideas..

PLEASE HELP.

owlcroft
08-21-2004, 07:54 PM
[QUOTE=rex_b]I can't figure out how to get the redirects off my directory here
www.religiousdenominations.com

any ideas..

PLEASE HELP.[/QUOTE]You need to post the content of your .htaccess file (it is in your site's root directory). If there is any confidential material in it, omit that--we only need to see the lines that have to do with rewrites/redirection.

(Oh, and with 404 error-handling, since an attempt to read your .htaccess on line returned a defective-404 warning as well.)

nrlatsha
08-21-2004, 09:28 PM
[QUOTE=rex_b]I can't figure out how to get the redirects off my directory here
www.religiousdenominations.com

any ideas..

PLEASE HELP.[/QUOTE]

I don't think you are doing any mod-rewrite stuff, so I think this is in your PHP code, somewhere in index.php, or an included file, similar to something like owlcraft's VIA.
There's going to be a database query and then a loop for the number of links you have for that category basically something like:

for ($col=0, $n=sizeof($links_category_list); $col<$n; $col++) {

echo '<a href="http://www.religiousdenominations.com/link/jump.php?sid=' .
(dbase query results like $links['links_sid']) . '&url=' . $links
['links_url'] . '">http://www.religiousdenominations.com/link/jump.php?sid=' .
$links['links_sid'] . '&url=' . $links['links_url'] .
'</a>';

}


You'll need to change that to remove the jump.php call. Like:
echo '<a href="' . $links['links_url'] . '">' . $links['links_url'] .
'</a>';

Or something similiar to that thereof....



HTH somewhat...

rex_b
08-22-2004, 12:36 PM
I found this code:

<tr>
<td><img src="<%DOMAIN%>/<%TEMPLATE%>/image/dot.gif" border=0 align=absmiddle>
<a href='<%DOMAIN%>/jump.php?sid=<%LINK_NO%>&url=<%LINK_EURL%>' target="_blank"><font size='2' color=blue><b><%LINK_TITLE%></b></font></a>
<a href='<%DOMAIN%>/review.php?sid=<%LINK_NO%>'><font size=2 class=midsmall>[<%L_REVIEW%>]</font></a><a href="#" onClick="window.open('vote.php?sid=<%LINK_NO%>','vote','width=200,height=120')"><font size=2 class=midsmall>[<%L_VOTE%>]</font></a>&nbsp;<%DOWN%>&nbsp;<%MARK%><%COOL%><%CHOICE%></font>
</td>
</tr>

rex_b
08-22-2004, 12:38 PM
the .htaccess only shows this:

redirect 301 /index.html http://www.religiousdenominations.com/link/

owlcroft
08-22-2004, 02:13 PM
[QUOTE=rex_b]the .htaccess only shows this:

redirect 301 /index.html http://www.religiousdenominations.com/link/[/QUOTE]Now I am assuming that what you want is that when people click on (or enter) your site main URL, they get to your site front page, and not the Links page they get to now.

If that is correct, all you should need to do is remove that line from your .htaccess file--it is redirecting, as a permanent URL change, your front page to your Links page, which scarcely seems what you could want.

nrlatsha
08-22-2004, 11:39 PM
I think I missed the boat on this one, I see owlcraft got you to a normal home page. I took it as you didn't want thost redirects in your links directory.

Did you want both?

rex_b
08-23-2004, 06:02 AM
Yah maybe I should have been more specific. The redirects on the links within the directory is what I want removed.

sorry

nrlatsha
08-23-2004, 01:10 PM
[QUOTE=rex_b]Yah maybe I should have been more specific. The redirects on the links within the directory is what I want removed.

sorry[/QUOTE]

Ok, then you'll have to change the code that page:


<a href='<%DOMAIN%>/jump.php?sid=<%LINK_NO%>&url=<%LINK_EURL%>' target="_blank"><font size='2' color=blue><b><%LINK_TITLE%></b></font></a>


to something like this:

<a href='<%LINK_EURL%>' target="_blank"><font size='2' color=blue><b><%LINK_EURL%></b></font></a>

rex_b
08-23-2004, 02:01 PM
ok that didn't work it messed up the name of the link and just took off the /jump.php and the side but the religiousdenomatinos.com/ still stayed infront of the link..

weird...

rex_b
08-26-2004, 08:20 AM
anyone?

nrlatsha
08-26-2004, 10:41 AM
[QUOTE=rex_b]anyone?[/QUOTE]

Sorry Rex, I got caught up working on a customer's site. Can you PM me a copy of the file you are working on, I'll need to take a closer look.