Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Adding to my .htaccess
Old 08-28-2010, 06:29 PM Adding to my .htaccess
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
So far I have this code:

Code:
RewriteCond %{HTTP_HOST} ^(www\.)?myolddomain\.co.uk$ [NC]
RewriteRule .* http://www.mynewdomain.co.uk%{REQUEST_URI} [R=301,L]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
But I need to make another addition and am unsure about how to update the file without breaking what's already there!

Basically I need to repoint a subfolder like so:

Code:
http://www.myolddomain.co.uk/subFolder
Redirects to

Code:
http://www.someotherdomain.com
If anybody has any ideas that would be great
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 08-30-2010, 12:58 PM Re: Adding to my .htaccess
Novice Talker

Posts: 5
Trades: 0
Redirect /subFolder /

should work in .htaccess
hmosselaer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Adding to my .htaccess
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25447 seconds with 12 queries