Go Back   Pligg CMS Forum > Other > Off-topic

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2007, 12:46 AM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 576
Thanks: 31
Thanked 24 Times in 20 Posts
.htaccess forwarding

Not for a pligg site, but for a regular website located in a sub folder, I just want people to be forwarded to the domain name I now have.

I have tried to get this working, but it seems that it has to be the exact address with slashes and everything, or it wont work.

Anyone know what I could do so that I don't have to add 4 different variations of the address?
__________________
God bless,
-en3r0

Torrop.com - Torrent and P2P News
MemeVote.com - Find and vote on Memes
Reply With Quote
  #2 (permalink)  
Old 02-19-2007, 01:08 AM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
my old site had /index.html files, now using wordpress installed o a subfolder - this is what I use

Code:
RewriteEngine On
Redirect /index.htm http://dollars5.com/plete/index.php
Redirect /index.html http://dollars5.com/plete/index.php
Redirect /index.php http://dollars5.com/plete/index.php
Reply With Quote
  #3 (permalink)  
Old 02-19-2007, 11:31 AM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 576
Thanks: 31
Thanked 24 Times in 20 Posts
Thank you very much for your reply! I'll be sure to try this out when I get home!
__________________
God bless,
-en3r0

Torrop.com - Torrent and P2P News
MemeVote.com - Find and vote on Memes
Reply With Quote
  #4 (permalink)  
Old 02-19-2007, 02:05 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
But my online pal told that this can be optimized using pattern matching somethings like (.*) and would get replaced to proper. But I am able to do that with RewriteRule and never successfully with Redirect.

Anyone can optimize this with Redirect mod_rewrite? apache gurus - pls come to limelight... with suggestions and ideas.

Thanks in advance.
Reply With Quote
  #5 (permalink)  
Old 02-19-2007, 11:42 PM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 576
Thanks: 31
Thanked 24 Times in 20 Posts
that would be nice if someone could do that, any one really good with apache?
__________________
God bless,
-en3r0

Torrop.com - Torrent and P2P News
MemeVote.com - Find and vote on Memes
Reply With Quote
  #6 (permalink)  
Old 02-19-2007, 11:54 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
A detailed documentation for mod_alias (Redirect is called that way) is found at http://httpd.apache.org/docs/1.3/mod/mod_alias.html
Reply With Quote
  #7 (permalink)  
Old 02-20-2007, 11:14 AM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 576
Thanks: 31
Thanked 24 Times in 20 Posts
Alright, I have everything under control. I thought that apache would only redirect the exact url. It will work with or with out the trailing slash. One line was all that was needed.

Redirect /folder http://www.foo.bar


Thanks for your help!
__________________
God bless,
-en3r0

Torrop.com - Torrent and P2P News
MemeVote.com - Find and vote on Memes
Reply With Quote
Reply

Thread Tools
Display Modes
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess + admin bug. can anyone please help? boofme Bug Report 6 11-08-2008 12:37 AM
change .htaccess default to .htaccess error gadiez Installation and Upgrade Help 0 08-31-2008 11:33 AM
.htaccess bug? bluehenn General Help 0 12-10-2007 02:28 PM
::How to:: Use .htaccess file with Pligg kbeeveer46 General Help 0 01-25-2007 10:16 AM
Link problems - .htaccess - possible fix rcalinjageman Installation and Upgrade Help 0 09-10-2006 11:39 AM


Search Engine Friendly URLs by vBSEO 3.2.0