| Author |
Message |
thecrow

Joined: 02 Jul 2007 Posts: 30
Location: Nor Cal
|
Posted: 30 Jul 2007 18:32 Post subject: Looking for htaccess write for forwarding |
|
|
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 |
|
max

Joined: 18 Oct 2006 Posts: 538 Rank: 38
|
Posted: 31 Jul 2007 16:59 Post subject: |
|
|
| 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 |
|
thecrow

Joined: 02 Jul 2007 Posts: 30
Location: Nor Cal
|
|
| Back to top |
|
thecrow

Joined: 02 Jul 2007 Posts: 30
Location: Nor Cal
|
Posted: 31 Jul 2007 18:54 Post subject: |
|
|
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 |
|
max

Joined: 18 Oct 2006 Posts: 538 Rank: 38
|
Posted: 01 Aug 2007 09:39 Post subject: |
|
|
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 |
|
|
|
|
|
|
|
|
|