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
ADVERTISEMENT
Aug 4, 2008
I am planning to develop an online role-playing game in which people play characters involved in intimate relationship with each other. The exact content of the game is not defined; it's a research project for me. It's possible that the game will be entirely text-based, or maybe it won't. I need a hosting (VPS/VDS) that will host the game itself plus all the needed stuff (development blog etc.)
I have general understanding of the current state of offers in VPS hosting market, however I'm totally unaware of hosting providers' position towards such explicit sites.
What can I expect from general hosting provider in regards to the nature of my project:
a) usual hosting provider doesn't mind explicit content
b) usual hosting provider doesn't allow explicit content, but I may find one that doesn't mind
c) usual hosting provider will never allow explicit content; I'll have to find a shady "pron" hosting provider
Does it depend if my site will or will not contain images of explicit nature?
View 2 Replies
View Related
May 1, 2007
This is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Errordocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</IfModule>
Basically, if file exist just call the file
If the is not ended in jpg, jpeg, gif, png, css, or js, and doesn't exist then call index.php
Does that mean it'll call 404.html for all files that ended in jpg, jpeg, etc?
What happened when 404.html doesn't exist?
View 1 Replies
View Related
Jul 8, 2014
Unfortunately the encrypted FTP transfer is broken since Plesk upgraded to version 12. There are two cases:
Passiv FTP without encryption on port 21: everthing workes fine.
Passiv FTP with explicite TLS encryption on port 21: The control connection can be established by using TLS on port 21 but the data transfer can't be established by using passive mode (ETIMEDOUT - Connection attempt timed out)
I thought it could be a firewall issue but i'm currently unable to diable the firwall for testing since the configuration of the firewall is unreachable after upgrading to plesk 12! See second thread:URL....
View 2 Replies
View Related
Jan 1, 2007
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
That's the wordpress .htaccess
I tried to change the .htaccess to explicitly tell thedomain name.
So,
PHP Code:
RewriteRule . /index.php [L]
becomes RewriteRule . [url]
Then I tried copy the .htaccess to another domain. I thought I'll create a mirror. However, rather than a mirror, the http://anotherdomain.com/bla simply REDIRECT to [url]
How do I ensure that http://anotherdomain.com/bla display the content of [url]without redirecting?
Where can I learn more about modrewrite? Is there a more appropiate forum?
View 5 Replies
View Related
May 1, 2007
I am installing phplinkdirectory in lighthttpd, keep having problems with Mod Rewrite, everytime, I enable Mod Rewrite, 404 errors come out. What should I do?
View 7 Replies
View Related
Jan 20, 2009
I'm looking for shared web hosting for a video sharing explicit adult website (like youporn).
Can you please help me?
View 12 Replies
View Related
Nov 3, 2013
I will have or not problems, (plesk compatibility) with this tool: URL....URL-Rewrite...I need install ModRewrite to use "Permanent Links" with some scripts like "Wordpress". I have try search on the web any alternative, and i found this.
I like know if this "URL-Rewrite" from Microsoft will cause me or not problems with my Plesk 11.5.Additional i like know, if i can create a file "web.config" and this file will accept all my custom configurations?.For example to activate the URL-Rewrite on a Wordpress Install:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
[code]....
View 2 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
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
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
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
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
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
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
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