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
ADVERTISEMENT
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
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
May 19, 2009
I have the following RewriteRule directive in my htaccess file on my localhost:-
Code:
RewriteRule ^([a-z-]+)/?$ test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
The rewrite rule works perfectly, since the revised URL is still preserved when after it is executed; I presume this is since my old URL is relative, and it's performing an internal rewrite.
However, when I make my old URL absolute (adding an external address to it), whenever I execute my new URL, I'm redirected to the external sites URL (which includes the same URL parameters as my internal 'test.aspx' page), like below:-
Code:
RewriteRule ^([a-z-]+)/?$ http://www.example.com/test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
Purely for demo purposes, upon execution, I'd like my new URL to be preserved in the address bar whilst, I'm redirected to the external site.
Is this possible to do - something like forcing the behaviour of an internal rewrite?
EDIT: I've done some investigating and people with similar problems have suggested using the Passthrough handler - although I'm slightly unclear as to what this does exactly, I gave it a go (adding '[PT]') at the end of RewriteRule, but unfortunately this didn't make any difference.
Is mod_proxy a possible solution?
View 1 Replies
View Related
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
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
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
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
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
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
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
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
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
View Related
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
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
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
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
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
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
May 13, 2014
RewriteRule ^massaggi-([^/]*)$ /an.php?prov=$1 [L]
View 1 Replies
View Related
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
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
Mar 25, 2015
How do they redirect to the Server URL in CPanel.
Eg. <Domain.tld>/cpanel
I looked for directory called /cpanel but non-exist.
I wish to use the same method to redirect to Plesk Panel <Domain.tld>/ppp if possible.
View 1 Replies
View Related
Feb 3, 2015
I have a VPS with 1&1 and i'm trying to customize the Control Panel hostname to mypcp.mycustomdomain.com...I have added mypcp A record for mycustomdomain.com pointing to the server's IP address.
Right now if I type the full URL: https://mypcp.mycustomdomain.com:8443 it works fine but if i type just mypcp.mycustomdomain.com:8443 it keeps loading until it times out but it never redirects to https.
View 2 Replies
View Related
Aug 25, 2014
How do we redirect port in Plesk firewall module without touching iptables? I saw forwarding but there was no destination port.
View 1 Replies
View Related
Jun 3, 2008
I am using a script, on which i want to enable friendly URL, below are the instructions.
Friendly URLs Settings
Apache Settings
(please add the following lines to your
.htaccess file to turn on friendly URLs)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /hcl/friendly_url.php [L]
</IfModule>
But, issue is, i am using IIS on Windows Server.
How can i implement this?
View 11 Replies
View Related