Hello Guys,
I have a server which has 3 domains all pointing to it. All domains are on the same website.
www.domain1.com
www.domain2.com
www.domain3.com
How can I redirect www.domain3.com to www.domain3.com/test.html using .htaccess?
Thanks!
...
Hello Guys,
How can I redirect http://domain.com/blog/index.php/weblog/rss_2.0/ to http://www.domain.com/feed/ with .htaccess?
The website has 3 domains pointing to it and all is using the same htaccess.
Thanks!
...
My intent is to rewrite urls ending in .html to .php (not actually all of them, but that shouldn't really matter with regard to this question). I'd also like to disallow urls ending in .php (so that the user can access every page only using urls with .html extension).
I'm using these rules inside .htaccess:
RewriteRule ^(.*)\.php$ $1.h...
Hello all..
I have this problem with my code, the page is redirecting and wouldn't stop.. The browser stop it because it's redirecting all the time, and I have a global.php file that included in all php pages, so I putted this code for the session and it went like what I said
if (!session_is_registered('username')) {
if(!eregi('log...
What's the best way to redirect all your pages from www to root domain using ruby on rails?
...
I am having problems doing a redirect for some URLS, the ones from the old site that have a ? sign, won't redirect, every other URL will do.
example:
OLD:
/laser-alignment-resources/presentations.cfm?pres=diaphragm
NEW:
http://www.acquip.com/en/presentations/47-presentation-internal-laser-diaphragm-alignment
Won't work, I am sure I did...
Hello,
This is my jsf code :-
<h:commandButton id="cmdLogin" value="Login" actionListener="#{indexBean.login}">
<f:ajax execute="@form" render="@all" />
</h:commandButton>
This is my login method of indexBean :-
public void login(){
HttpServletResponse objHttpSe...
I'm trying to get into making Facebook apps but I'm having trouble getting authorization working in a redirect scheme inside the canvas.
Using the javascript api, I got it working pretty easily in a popup scheme:
$("#loginButton").click(function(e) {
FB.login(function(response) {
if (response.perms) {
perms();
...
Hi - here's what I have:
index.php
<form method="post" action="index.php#error_message">
...
If form submission validates, at the top of index.php, I have:
<?php
...
header('Location: thanks.php#thanks_message');
...
So, by the time it gets to the thanks.php page, it should anchor to #thanks_message. Works fine in IE, Firefox, Ch...
Possible Duplicate:
Best redirect methods?
Hello
I am working with some legacy code that includes a module for user registration / login. There is a block that queries the DB to see if the user is logged in, then re-directs to the login page.
The re-direct is handled by <meta http-equiv='refresh' content='=2;index.php' /> ...
Hi,
I have the following scenario and unsure how to go about solving it.
Basically have the following page that a user can go to by where this URL exists within their email.
For example: http://www.abc.example/yourdetails.html
My question is, I have now been told that this whole web app is being moved to a new domain, i.e.
http://ww...
I have decorated my controller with an Authorize attribute, as so:
[Authorize(Roles="ExecAdmin")]
If I try to go to that controller after logging in as a user who is not ExecAdmin, it does appear to be attempting to redirect to a login page. BUT, the page it is attempting to redirect to is not my login page, it is a view called LogOnU...
I tried what is described in this post. Even though I was able to change the URL of the request, but the original URL was still loaded.
What I am trying to do is to insert an authentication string into the URL (i.e. http://user:pass@url) for those that don't already have it.
The URL I'm loading has frames, so the [[webview request] U...
hi all, how to redirect a url in php? if i use htaccess to redirect, then its asking me a authentication (username & pwd). i want to redirect to url without any authentication.
is it possible in php.
i dont want to use headers or meta tags or window.location to relocate i.e redirect.
any other way is possible? thanks in advance.
...
For some reasons Google custom search result shows https:// for some of my page links. The only solution for now would be to redirect the https:// links to http:// with htaccess for now until i figure out why search results are showing https://
I want the redirect to bypass the SSL cretificate or "Add Exception" page and redirect to htt...
Now I didn't do the website design but a couple of months ago I ported an existing website over to wordpress for a client of mine.
I got a call from a client today regarding their website, and some sort of a security problem.
The websites homepage loads up fine, but if you try to navigate to any other page it brings you to - http://sec...
I have 2 dropdown lists that I'm putting on to the page as follows. I can't get either to work:
<%=Html.DropDownList("CategoryId", Model.CategoryList, "Select a category to view")%>
and
<%=Html.DropDownList() For(m => m.SearchExpression) %>
What I need is to be able to redirect to a page when one of the items is selected and I clic...
for some weird reason my CMS is logging out if the address bar does not have www before the full website name. for example, when we enter xyz.com, it takes me to the website but then it wont show as logged in and if i type in www.xyz.com it will find the cookie and show me logged in.
What i want to do is, when user types in xyz.com, i w...
i have the following redirect:
RedirectPermanent /SCJ https://fin-iq.com
but it does not work for /scj, /sCj, etc. is there a way to make this case insensitive?
i tried adding [NC,L] but the page crashed.
thanks!
...
I am attempting to change the redirected for the django admin save button. What I pasted below works on saving an already existing entry (updating) but not on saving a new one. Any thoughts?
def change_view(self, request, object_id, extra_context=None):
result = super(TodoAdmin, self).change_view(request, object_id, extra_context)
...