Redirecting Forum From Subdomain To Subdirectory

Apr 25, 2009

We are wanting to move our forum from a subdomain where it lies currently to a subdirectory of the main site.

I know that this could be done via htacess, but I am wanting to make sure that we don.t lose any of the backlinks that we have coming in, or any page rankings that we have accumulated.

I have a htaccess rule, but I guess I need to know if

a) it is Correct

b) where to put it

Now please bear with me as I cant post urls, so this bit is quite difficult to get out... I have replaced the link elements with CAPPS, such as www becomes 3WS

Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST}!^3WS. [NC]
RewriteCond %{HTTP_HOST} ^(.*).DOMAINHERE.TLD [NC]
RewriteRule (.*) HTTPCOLONSLASHSLASHDOMAINGOESHEREWITHTLD/%1/$1 [R=301,L]

Do i still need to point the subdomain at a folder with just this in, and then have a separate folder where the actual forum goes....

or do I put this in the htaccess, then also point at the directory to be the location for the /forum/

View 1 Replies


ADVERTISEMENT

How To Hide A Subdirectory Pointing To A Subdomain

Apr 25, 2007

On most servers using a vhost you can make a subdomain point to a subdirectory.

so www.host.com/stuff would be stuff.host.com

That works fine for me. I now want to avoid people being to access the www.host.com/stuff and always have to go via the subdomain.

If I create a rewrite rule I'll get an infinite loop as the subdomain and subdirectory will keep on going to each other.

What is the proper way of disabling access via the subdirectory?

View 1 Replies View Related

How To Use .htaccess To Remove Subdirectory...

Apr 7, 2007

Is it possible to use .htaccss to remove the subdirectory from a url? The reason I ask it that the script I want to use requires members to be in a /users/ directory, and I would like to remove that part of the url. For instance...

can I use .htaccess to change www.thewebsite.com/users/username

to www.thewebsite.com/username

I have absolutely no need to access the /users/ directory without the username, it's just that all accounts are created in that directory.

Is it possible?

View 1 Replies View Related

Mod_rewrite Move System To Subdirectory

Jul 16, 2008

I'm currently trying to set up a an old Project Management System we developed in house to be able to be run from a subdirectory (currently it is designed to run from the DocumentRoot). I figured I would be able to just throw together some mod_rewrite rules to be able to rewrite all requests to the subdirectory, but still haven't had any luck.

I'm pretty good with regular expressions, just not alot of experience with mod_rewrite.

Here's the idea I'm going for

Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/sub
RewriteRule (.*) /sub/$1

The PMS is littered with header redirects and stuff, so it'd be nice to be able to do it all from an .htaccess file or httpd.conf (if necassary).

View 5 Replies View Related

How To Change Php Files Permissions In Directory And Subdirectory At Once

Nov 9, 2007

How to Change php files permissions in directory and subdirectory at once ?

I want to change the permissions of php permissions to be 644 in /home/user/public_html/forum and all forum subdirectory using SSH.

View 2 Replies View Related

Apache :: Redirection Page From Subdomain To New Subdomain

May 11, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).

I need to redirect page from subdomain to a new subdomain

Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic and there are no clear rule for redirection (no regex )

So I need to redirect every page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage

doesn't work!

which is the correct syntax ?

Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ? 

View 1 Replies View Related

Url Redirecting

Jun 12, 2007

This url:

live.sitening.com

Goes to:

s3.amazonaws.com

What i am wondering is how they do it. I want to do the same thing. I know about redirecting in .htaccess. But this doesn't look like a simple redirect.

View 0 Replies View Related

Redirecting IP Addresses

Aug 17, 2008

Anyone know of a service that will allow an IP listed in "A record" to be redirected.

I have a client who has office based mail servers and some remote applications running and because of this their IT company has the nameservers. The NS entries cannot be changed

When I need to change A records, I then have to call the IT company, what I am hoping to achieve is have IT company set A record to xxx.xx.xx.xx and I can direct that to zz.zzz.zz.zz and change as needed.

View 7 Replies View Related

Redirecting A Website

Jun 27, 2009

I have a domain name websiteexample.com and its hosted with somebody, I have built a new website under a new domain .co.uk on a new server and need to redirect my .com to the .co.uk, how the best way to handle this with serach engines in mind, I dont want to loose my .com listing if possible, is a framed forward a good way?

View 9 Replies View Related

Htaccess- Redirecting

Apr 26, 2009

I'm trying to redirect all people who go to [url]to [url]

I've got this but it doesn't do anything: (and I did verify that the .htaccess works, as

I added garbage text and tested and got an error).

Code:
Options +Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.mydomain.com/directory/$ [NC]
RewriteRule ^(.*)$ [url]

View 8 Replies View Related

Redirecting To Another Server

Jul 4, 2008

im hoping someone could help me im trying to redirect traffic to another server thats closer to them like google does when you type in .com you get redirectesd to your local one for me its google.ie. basically i have large content on the site and viewers in america can view it fine as its hosted there, do i have to host one in europe too so they can have a faster download speed for the website if so what is the best option for me and how can i redirect european views to the european server.

View 7 Replies View Related

Redirecting......(htaccess)

Apr 6, 2008

I have been trying for more than an hour to figure that out , but nothing....

I want to perform 2 types of redirects on my webpage/forum

I want all non-www to move to www.mysite.com/forums
and I also want the www.mysite.com to redirect to the /forums one...

All of those with WWW

I can make each work alone, but not these 2 together....

View 7 Replies View Related

301 Redirecting To Public_html

Jan 31, 2007

I'm currently using this in my .htaccess:

Code:
RewriteEngine On
rewritecond %[url]
rewriteRule ^(.*) [url]
I have this in my root (public_html) folder. However when you go to [url]
it redirects you to [url]
I'm already in the root. Why would it try to go to public_html/public_html?

What's the correct implementation of this .htaccess?

View 0 Replies View Related

New Hosting, Redirecting Domains

Apr 2, 2008

I've got a two domains (.com and .co.uk) at 123-reg and I've just got some new hosting. At the moment the .com points to the new hosting. How do I get the .co.uk to point there are well? The options I can find are changing nameservers (still don't understand this...) or to use web-forwarding.

View 4 Replies View Related

Modrewrite Without Explicit Redirecting

Jan 1, 2007

I have this as my .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule !(index.php) [url][L]
</IfModule>

It works in every way as desired.

Any url, [url]whatever will show up [url]

From index.php then I can create php generated websites that take pics, whatever from database.

However, I got an idea. What about if several domain names use the same index.php and the same database. So, it's like mirrors.

If I put the same .htaccess in other domain name, I got something unexpected though.

The url location actually change to [url]
Also the content of

PHP Code:

echo 'Server:' . $_SERVER['SERVER_NAME'] . "
";
echo 'Host:' . $_SERVER['HTTP_HOST'] . "
";
echo 'Request:' . $_SERVER['REQUEST_URI']; 

also change to domain.com, and /index.php?languageIndicator=lang_ar

I want an implicit redirect. Not an explicit redirect. To the outside world, people must think that they're indeed accessing http://otherdomainame.com/somepages and has no way to know that the page they're looking is http://domain.com/index.php?languageIndicator=lang_ar

How can I do that?

Of course, I can always copy index.php to all my domain names. But that's slow.

View 1 Replies View Related

Apache :: How To Keep URL Unchanged After Redirecting

Oct 19, 2012

I have set up Apache as a SSL front end for our web applications deployed in GlassFish Server 3.0.1 Open Source Edition, how can I keep the original URL displayed in the web browser address bar unchanged after redirecting via Rewrite / ProxyPass and ProxyPassReverse

Reference 1:
RewriteEngine On

# If the request URL does not start with a slash (/), prepend it.
RewriteRule ^([^/].*)$ /$1 [E=redirect:y,N]
# If the request URL starts with more than one slash (/), keep only the first one.
RewriteRule ^//+(.*)$ /$1 [E=redirect:y,N]

[Code] .....

View 4 Replies View Related

Domain Name Redirecting To Unknown Website

Aug 22, 2008

I came across a problematic situation today. Our client pmb.com.my has complained that their domain, when accessed from search engines will go to another site, not theirs. So, perhaps you guys can try this out.

1. Type the URL on the browser directly: [url]
You'll get the real site.

2. Try searching for "pmb malaysia" on Google:
[url]

3. You should see a normal listing for the site as the 1st result. Try clicking that link.

4. In our checks, it will go to a landing page (black bankground), and will redirect to an adult site.

5. You get this landing page too when you click the link to the site in step 1.

Appreciate if more people can try this out and post your findings here. I've contacted the RZ (site hosted there), and they said it is an issue with Google's cache. Not sure I buy that.

View 6 Replies View Related

Website Redirecting To Sitebuilder Page

Mar 19, 2007

All my websites are redirecting to Sitebuilder page. Like if I open my website:

It is redirecting to SWSOFT Sitebuilder page. Please let me know how can i fix it.

View 2 Replies View Related

Apache :: Redirecting From HTTP To HTTPS

May 4, 2015

I keep hearing that redirecting from http to https is not very secure [non-SSL to SSL]. Among other reasons, one reason is that the browser may continue to think it is communicating with non secure server and may not encrypt the data. Is it true? I hope not, I am using the following -

<VirtualHost 12.34.567.89:80>
ServerName www.mysite1234.com:80
Redirect / https://www.mysite1234.com/
</VirtualHost>

View 1 Replies View Related

Apache :: Redirecting Only Root But Not Subfolders

Feb 5, 2013

For now I have this

RewriteEngine On
RewriteCond %{http_host} 7eh.net|www.7eh.net
RewriteRule ^/?$ http://www.secretdesignart.com/ [L]

But some folders are redirected.

You can check here:

[URL] .....

View 2 Replies View Related

Apache :: Redirecting All Subdomains To HTTPS

Jan 21, 2015

Say I have two domains: example.com and example.net.

Upon a http request to example.com, I wish to redirect to https://example.com.

Upon either a http or https request to example.net, I wish to redirect to https://example.com.

Note that for both cases, subdomains should also be redirected, and the change should be considered permanent.

I've seem multiple ways to do so. What is the best way? How do I deal with subdomains when there is a new domain such as example.net to example.com?

I've taken a stab. How to fill in the gaps?

View 1 Replies View Related

Redirecting Users Whilst Moving Servers

Jun 15, 2008

I have a question regarding status pages. Whilst setting up a new website, upgrading forum scripts etc what is the best way to redirect users?

I would like myself and one other person to have access to run the tasks, however I would like to redirect visitors to the website to a standby page whilst we are doing this.

What is the best method? .htaccess? IP based?

View 8 Replies View Related

Apache :: URL Rewritten But Still Original One Also Works And Not Redirecting

May 13, 2014

RewriteRule ^massaggi-([^/]*)$ /an.php?prov=$1 [L]

View 1 Replies View Related

Apache :: HTAccess Redirecting Threads In Vbulletin

Mar 18, 2014

I'm trying to redirect some threads in vbulletin from full version to archive version, I just have some problems and I have not been able to resolve it.

I have the [URL] ...

and I want redirect to: [URL] ....

I have:

Options + FollowSymLinksRewriteEngine onRewriteRule ^showthread.php?([0-9]+)$ archive/index.php/t-$1 [R = 301, L]

View 1 Replies View Related

Apache :: Redirecting To Multiple Webapps In Same Tomcat

Jun 25, 2015

I must say that I tried a lot of possibilities but my knowledgment in Apache WS is not too much advanced.

Apache Web Server version: 2.2.22
OS: Centos 6 64 bits
Tomcat version: 7.0.57

What I need to achieve is the following:

I have some plain websites defined this way:

<VirtualHost *:80>
ServerAdmin example1@example1.com
DocumentRoot "/opt/sites/example1/"
ServerName example1.com
ErrorLog logs/example1-error_log
CustomLog logs/example1-access_log common
RedirectMatch permanent ^/(.*) http://www.example1.com/$1

[Code] ....

View 5 Replies View Related

Plesk 11.x / Windows :: Page Isn't Redirecting Properly?

Apr 14, 2014

A few months ago we had upgraded our server from Win 2k3 with Plesk 8.6 to Win 2k8 with Plesk 11.5.30 migrating all the domains. After migrating, all the domains are working fine, but when trying to access the control panel using a specific user we get always the error "the page isn't redirecting properly" in different browsers, login in with Admin user it works perfect, or even with a different domain user.

Tried already to change the subscription to a different owner and get it back, it didn't work neither on the different owner or the original one.

Tried also:
"%plesk_bin%"websrvmng.exe --configure-anonymous-access
"%plesk_bin%"websrvmng.exe --remove-sites-cache
"%plesk_bin%"websrvmng.exe --configure-plesk-website

When I get this error, the address bar always changes to https://server-ip.com:8443/smb/

I may guess that when migrating this domain, user roles where not upgraded correctly

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved