Redirect with htaccess to upper level folder, how to?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Redirect with htaccess to upper level folder, how to?
# 1  
Old 12-13-2010
Question Redirect with htaccess to upper level folder, how to?

Hello,

Well I have a web with a very bad structure (a vBulletin forum) and I want it redirected to a newer folder in the same server but with a upper level folder.

Current structure is:
PHP Code:
http://www.unix.com/vbulletin/upload/index.php 


And I want it to be:
PHP Code:
http://www.unix.com/forums/index.php 


But the 301 redirections via htaccess aren't working properly and of course I don't want to lose rank...

Any help?

Thanks.

Webserver: Apache
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute script in Folder with Lower & Upper case

My script test.sh requires an argument and it could be present on a list of servers under a folder with name either in upper or lower case like below: For example: i want a generic command for calling the test.sh script and pass one argument Below is what i tried but it is failing ... (10 Replies)
Discussion started by: mohtashims
10 Replies

2. Web Development

Htaccess Redirect Problem

Hi, I have this string that I need to match and redirect to an actual live url. I have tried what I know and it won't match. This is the url I want to match. http://www.abc.com/smf_test/?topic=191.0;wap2 here is my attempt at a pattern match RewriteCond %{REQUEST_URI} ^/smf_test/$... (0 Replies)
Discussion started by: sharingsunshine
0 Replies

3. Web Development

.htaccess allow at directory level

Hi Guys I have a web a site at the following directory /var/www/ the website is containing a lot of sub directories. /var/www/mywebsite/folder1 /var/www/mywebsite/folder2 /var/www/mywebsite/folder3 I would like to block all the website expect one user ex: user1 password1 who can see... (3 Replies)
Discussion started by: molwiko
3 Replies

4. Web Development

.htaccess redirect with #

I have the following directive in my .htaccess: #RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh" The problem is that the redirect is going to http://www.seobook.com/%23a_aid=dh How to preserve the # when redirecting? (2 Replies)
Discussion started by: rlopes
2 Replies

5. Shell Programming and Scripting

Recursively move a subfolder to one upper level

Hi, all: My folder structure is like: What I'm expecting to realize is to have my folders look like: How to realize it? Cheers Pei (0 Replies)
Discussion started by: jiapei100
0 Replies

6. UNIX for Advanced & Expert Users

Redirect with htaccess

Hi, I would like to use htaccess 301 redirect with URL hiding. Ex: when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Discussion started by: chandranjoy
0 Replies

7. UNIX for Advanced & Expert Users

.htaccess redirect with masking

I am looking to forward the following with masking via my .htaccess file: www.mywebsite.com/origpage www.mywebsite.com/newpage I do not want to forward the entire site, just this one page with masking. Neither page has an extension. I am able to forward with .htaccess - but it does not mask the... (1 Reply)
Discussion started by: globalnerds
1 Replies

8. Shell Programming and Scripting

operation on a folder level

hi, need help in writing a script in perl. requirement : 1. Search for the files in a particular folder 2. search for a string in the file names 3. Delete the file which matches the string. Ex: if the folder is C:\TEST and the folder has 5 files like 2009ABCG.txt 2009MNO.txt... (2 Replies)
Discussion started by: adityamahi
2 Replies

9. UNIX for Dummies Questions & Answers

newbie needing help with upper level directories

What is the purpose (function) of the following upper level directories: - /bin /dev /etc /home /mnt /media /sbin /tmp /var I have encountered these, but as i said, i am new to unix and i am not quite sure what they are and what their fucntions are. Any help would be greatly... (2 Replies)
Discussion started by: carlvernon
2 Replies
Login or Register to Ask a Question