visio - Posts

Return to advanced search

Its linux with apache...

And no that code does redirect the urls it just adds the equivelent original dynamic url to the end after loading the page... but yeah it redirects to the right pages...
by visio
Mon Aug 13, 2007 7:04 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Not sure what you mean by what server and what version... please clarify that. MAIN .HTACCESS #Options +FollowSymlinks RewriteEngine On RewriteBase / RedirectMatch permanent ^/forums/(.*)$ http://forums.1stsearchenginerankings.com/$1 RewriteCond %{HTTP_HOST} ^1stsearchengineranking...
by visio
Mon Aug 13, 2007 6:02 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

SeO wrote:
dcz wrote:after rewrite engine is on


This at least means you need :

Code: Select all
RewriteEngine on
RewriteBase /


Before this line.



Its there;
by visio
Sun Aug 12, 2007 1:15 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Should work with something like : RewriteRule ^forums/(.*)$ http://forums.1stsearchenginerankings.com/$1 [L,R=301] Try : RewriteRule ^forums/(.*) http://forums.1stsearchenginerankings.com/$1 [L,R=301] just in case, after rewrite engine is on of course. ++ Tried both as directed and both ret...
by visio
Sun Aug 12, 2007 12:47 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

I am using:


Code: Select all
RedirectMatch permanent ^/forums/(.*)$ http://forums.1stsearchenginerankings.com/$1
by visio
Sun Aug 12, 2007 11:56 am
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Sorry I messed up on the last post :P This is what I meant: Okay I used the first example and it gave 404 as usual... I tried the second and it worked... sort of. A request for: http://1stsearchenginerankings.com/ forums/ general-discussion-f1.html did bring up the appropriate page however somehow t...
by visio
Thu Aug 09, 2007 11:26 am
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Okay I used the first example and it gave 404 as usual... I tried the second and it worked... sort of. A request for: http://forums.1stsearchenginerankings.com/general-discussion-f1.html did bring up the appropriate page however somehow this got added to the end of the url: ?f=1 so it returns: http:...
by visio
Wed Aug 08, 2007 2:13 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

BTW I left RedirectMatch permanent ^/forums http://forums.1stsearchenginerankings.com/$1 in the .htaccess- was I supposed to remove that? I tried it in both instances provided and removing the above and inserting only the code you gave gives a 404 error when requesting: http://www.1stsearchengineran...
by visio
Wed Aug 08, 2007 1:07 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

SeO wrote:mmm

Try :
Code: Select all
RewriteRule ^forums/(.*)$ http://forums.1stsearchenginerankings.com/$1 [L,R=301]


Hmm nope returns the same results as the other you posted.
by visio
Wed Aug 08, 2007 1:05 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Try adding : RewriteRule ^forum/(.*)$ http://forum.1stsearchenginerankings.com/$1 [QSA,L,R=301] After : RewriteRule ^(.*)$ http://www.1stsearchenginerankings.com/$1 [L,R=301] In your main domain .htaccess. Thanks for your reply! I added that(added an 's' too as it is forums not foru...
by visio
Wed Aug 08, 2007 11:27 am
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

I have got the forums to work properly on the subdomain so forums.1stsearchenginerankings.com works fine however 1stsearchenginerankings.com/forums is not redirecting to forums.1stsearchenginerankings.com Here is what is in my .htaccesss MAIN .htaccess: #Options +FollowSymlinks RewriteEngine On Rewr...
by visio
Wed Aug 08, 2007 1:11 am
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Well I took it off because it wasn't working and while it was on it screwed up the folder option too.

I would be happy to give a link. Please tell me how I can do this for just the home page, I tried a normal ahref link but it didn't show up.
by visio
Mon Jun 11, 2007 12:37 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

It didn't work. when I do what you say it looks right but when I click a board it gives 404.
by visio
Wed Jun 06, 2007 10:19 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

How to 301 redirect forum to subdomain

I got everything working. Now I want to redirect my forums from domain.com/forums to forums.domain.com I tried the following: RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ RewriteRule ^forums/(.*) http://forums.domain.com/$1 [R=301,L] But it didn't work. How do I do this with both advanced mod rewr...
by visio
Wed Jun 06, 2007 6:10 pm
 
Forum: Apache mod Rewrite
Topic: How to 301 redirect forum to subdomain
Replies: 31
Views: 36627

Okay I FIGURED IT OUT!!!!! Here was the problem. If you have removed sessions before using this mod you can have a problem. That was mine. So I installed a test board and used those files(be careful if you got other mods) and it worked. I then got this problem where I couldn't login. This was caused...
by visio
Wed Jun 06, 2007 5:12 pm
 
Forum: Zero duplicate phpBB2
Topic: Headers sent 301 - Browser won't redirect - [FIXED]
Replies: 15
Views: 5092
Next

Return to advanced search