![]() |
301 redirect - need help please..
I need to 301 redirect like that -
www.domain.com/dir/index.php will be redirected to www.anotherdomain.com/index.php and all the other pages as well, for example www.domain.com/dir/forumdisplay.php?f=92 will 301 redircet to www.anotherdomain.com/forumdisplay.php?f=92 and all the posts and threads as well.. thanks a lot for the help. |
You should be able to create redirects using your hosting control panel (ie. cPanel, Plesk, etc.).
|
not this types of redirects.
i can do just basic redirect with my DA server panel. |
What do they put into the .htaccess file?
|
Quote:
Code:
RewriteEngine On |
it doesn't work , at all, it isn't redirecting thanks for trying,
can you please try giving me another code to try? it's very urgent. thanks. |
Quote:
I am not sure what format .htaccess receives requests, I do all my rewriting in httpd.conf. maybe it doesnt get the domain name? try RewriteRule dir/(.*) http://otherdomain.com/$1 |
I can rewrite httpd.conf, what do i need to add \ edit?
|
Code:
Options +FollowSymLinks |
Don't you mean 401?
|
It's 301 (Permanently Moved). You're probably thinking of 404 (Page Not Found)?
|
Nope, I'm thinking on 301,
I have 2 forums, and one of then is located in a directory, i'm moving it to it's own domain (it's about time.. ) and the code isn't working (VB NOVA) can it be because i have another htaccess file in the root folder? cous nothing had happened : |
Yeah, you can merge the two files or if you don't know how/think you'll mess something up. Paste the other one here and I'll do it.
|
this is the root folder htaccess file
Code:
RewriteEngine On there is a board in the base domain, in a directory inside the base domain there is another board , and i want to redirect the files in the directory to a new domain (on the same server..) thanks a lot :) |
Code:
Options +FollowSymLinks |
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. :\ |
Code:
Options +FollowSymLinks If that doesn't work try: Code:
Options +FollowSymLinks |
it redirects, but not in a good way, it lets me browse the forum like if the forum is located in the folder, instead moving me to the same path at the other domain :\
please try to help me.. |
What's the first domain so I can see & what code did you use, the first or the second?
|
both of them are doing the same thing,
the basic domain is http://www.atraf-f.net and the board that is located in http://www.atraf-f.net/upload (i've uploaded this board just to check the script) the real board is in an other directory.. it now has RewriteRule ^upload\/(.*)$ http://www.atraf-f.net/$1 |
You removed the [R=301,L] :p
Code:
Options +FollowSymLinks |
Thanks a lot :D !!
|
No Problem, Enjoy!.
|
All times are GMT. The time now is 06:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|