MAIN
NEW THREADS
AD SPOT

Looking for htaccess write for forwarding
Protect-X Forum >> TGP, MGP, CJ, Blog, Link and Top Lists
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
thecrow



Joined: 02 Jul 2007
Posts: 30

Location: Nor Cal

PostPosted: 30 Jul 2007 18:32    Post subject: Looking for htaccess write for forwarding Reply with quote

About three weeks ago, I switched from .shtml extensions to .html because of a handy new code write u can use on htaccess to allow server side includes. Since then, I have had increase no trade and no ref traffic which is because a lot of external linkers are linking to the old .shtml extension. I want to delete these pages since they are no longer updated on my TGP script.

I was wondering if anyone knew the proper htaccess code to use forwarding all pages on my root and subdirectories that use the .shtml extension. My site uses many pages and sub directories so, it would be nice to use one htaccess instead of using one for every page and directory. Any ideas?

Or would it be much more simple to delete all the .shtml pages and then just use a error page forward? If so, would that effect any traders that might use the .shtml extension?

Thanks

_________________
[URL=http://www.athenagardensproduction.com/webmasters/]Our Network List - AGP Adult Media[/URL]

[URL=http://www.nastylittlenymphos.com]Nasty Little Nymphos[/URL] | [URL=http://www.laineyxx.com]LaineyXX Bitchin Porn[/URL]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
max



Joined: 18 Oct 2006
Posts: 538
Rank: 38

PostPosted: 31 Jul 2007 16:59    Post subject: Reply with quote

Code:
Redirect permanent /filename.shtml http://www.yoursite.com/filename.html

works for me and seems to be user and se bots friendly. But you should create separate code line for each file you need to implement redirecting to.
Back to top
View user's profile Send private message
thecrow



Joined: 02 Jul 2007
Posts: 30

Location: Nor Cal

PostPosted: 31 Jul 2007 18:11    Post subject: Reply with quote

Because I have several sub folders that many pages sit in, would I create an htaccess per folder with the code above? Or would I just add this to my root htaccess?

Example:
http://mysite.com/main/allcats.html
http://mysite.com/main/movies/allcats.html
http://mysite.com/main/pictures/allcats.html
http://mysite.com/text/allcats.html
etc........

_________________
[URL=http://www.athenagardensproduction.com/webmasters/]Our Network List - AGP Adult Media[/URL]

[URL=http://www.nastylittlenymphos.com]Nasty Little Nymphos[/URL] | [URL=http://www.laineyxx.com]LaineyXX Bitchin Porn[/URL]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
thecrow



Joined: 02 Jul 2007
Posts: 30

Location: Nor Cal

PostPosted: 31 Jul 2007 18:54    Post subject: Reply with quote

Ok, I got it figured out! I added an htaccess to each directory.
Thanks for the help!!!

Cheers

_________________
[URL=http://www.athenagardensproduction.com/webmasters/]Our Network List - AGP Adult Media[/URL]

[URL=http://www.nastylittlenymphos.com]Nasty Little Nymphos[/URL] | [URL=http://www.laineyxx.com]LaineyXX Bitchin Porn[/URL]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
max



Joined: 18 Oct 2006
Posts: 538
Rank: 38

PostPosted: 01 Aug 2007 09:39    Post subject: Reply with quote

You could not do it that way. Single htaccess file in the root directory would be enough. But you should use relative paths then for each file, e.g. /main/allcats.html for the htaccess in the root of mysite.com like in your example.
Code:
Redirect permanent /main/allcats.html http://mysite.com/main/allcats.shtml
Back to top
View user's profile Send private message
   
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.
 
Jump to:  
Page 1 of 1

 
ADVERTISEMENT

ImLive Cam Adult sponsor


Powered by phpBB © 2001, 2005 phpBB Group

Anti Bot Question MOD - phpBB MOD against Spam Bots
Blocked registrations / posts: 0 / 0