PDA

View Full Version : Need help to redirect *.php3 to *.php


landspro
Tue 8th Jul '08, 4:19pm
It has been suggested that I create a new thread...

My forum has just been upgraded from 2.2.6 to 3.7.2, and I am experiencing problems with former google links as well as member bookmarks.

Vbulletin support tells me:

"use a .htaccess file on the server with some rewrite rules to automatically map the old PHP3 links to the new PHP files. I recommend this solution since PHP is really the standard and PHP3 is somewhat deprecated.
The people in the server forum can help with htaccess rewrite rules:
http://www.vbulletin.com/forum/forumdisplay.php?f=14 (http://www.vbulletin.com/forum/forumdisplay.php?f=14) "

I have no clue how to even begin to do this.

Can someone help me?

TIA!!!

mlx
Tue 8th Jul '08, 7:17pm
Try this: RewriteEngine On
RewriteRule ^(.+).php3 $1.php

landspro
Tue 8th Jul '08, 7:58pm
I found two different .htacess files.

One is simply .htaccess which says file type: empty when I print it.

The other one is .htacess.104547####### where ####### is simply more numbers. I don't think I have priviledges for this one because it doesn't give me the option to show contents.

I have to use cpanel to manage files, and it is not very friendly.

Do I simply create a file callled .htaccess using notepad or something and then upload it?

landspro
Tue 8th Jul '08, 9:01pm
The .htaccess with all the numbers is a folder (sorry about that)!

I edited the empty file, saved it and it works!!!!

Thank you so very much!

landspro
Tue 8th Jul '08, 11:37pm
When I was checking "who's online", I noticed all these valid ip addresses looking at unknown locations. I clicked on the unknowned location, and the link worked fine.

So, without being logged onto my forums, I went to google, did a search, found a link, clicked on it.

When I went back to a logged in version, I could see my ip address (as a guest) and sure enough, it showed that I was viewing an unknown location.

So, I guess this fix does not work for who's online.

Here is what I see:

Unknown Location
/forums/showthread.php3?threadid=4060&pagenumber=5 (http://www.landspro.com/forums/showthread.php3?threadid=4060&pagenumber=5)

and the link works.

Does that make sense?