I rewrite the login modules Url of Open Cart & fater Rewriting the url Login, Sign Up, & my account page is norking.
url :-https://www.gopromote.com.au/index.php?route=account/login
after rewriting Url
https://www.gopromote.com.au/login
Pls help me guys.
Make sure that:
1. SEO url setting is ON in store back end.
2. mods_rewrite is enabled on your web server.
Related
I need to put a system that hosts multiple domain into maintenance.
But SEO should not affect, so I need an htaccess config that supports following use cases.
xyz.com/index.html - should load index page without redirect
xyz.com/products/phone.html - should load index page without redirect
xyz.com/category/sub-cat/category.html - should load index page without redirect
No redirect only need to load a page for any URL combination.
This is to serve same html on any URL pattern on any domain hosted on the server. So SEO bots don't get 404 error.
I tried some solutions but they are 301 redirect methods which is not what I need. I tried some other config from some other posts but did not work as expected.
I am trying to redirect a url with below reference page:
Configuring a webpage redirect - Amazon Simple Storage Service
It is working for different folder names, but it is not working in same folder name. for example, I have to redirect the page from grid/row/ to grid/row/row. I am failing with too many redirects issue.
So please any one guide me to resolve this issue?
If I go to rid/row/ url, then it will be switch to grid/row/row/ url page.
I have a website in Django, hosted in Heroku.
I have 2 domains, registered in different places:
mysite.com and mysite.com.br
I don't want to be penalized by Google for having 2 domains with the same website, therefor I would like to redirect everyone who enters mysite.com.br to mysite.com.
I entered in the DNS mysite.com.br(Not hosted anywhere) CNAME mysite.com(hosted in Heroku), which makes the user actually access the Heroku content, but the url keeps the .BR ....
So the Heroku support told me to do the redirection in the application. In this case, what's the best practice to redirect? I would imagine to do that in the url.py, but how can I do that if the "path" doesnt read the domain?
Thanks.
You can't do this in the URLs. I would write some middleware to check the host via request.get_host and redirect if you're not on the canonical one.
In fact it looks like someone has already written this: django-enforce-host.
Just joined but have been a lurker for a while and found this community very helpful.
I've just sent out an email newsletter via Mailchimp to our 15,000 subscribers and included the wrong link (it should have been .../grandchallenges not .../grand-challenges. I've done a simple redirect on our website, but Mailchimp inserts individual URLs, so folks end up with a link that looks like this: .../grand-challenges/?mc_cid=debb7846d7&mc_eid=18de3e5c2a. As such i'd have to do 15,000 individual redirect requests, unless there's a way to 'bulk' redirect everything after the slash.
Btw - we're using Mezzanine as a Django CMS not Wordpress: http://mezzanine.jupo.org, so the answer won't be a WP plug-in.
Thanks!
use .htaccess
RewriteEngine On
RewriteRule ^grand-challenges\/(.*)$ http://example.com/grandchallenges/$1
you can check it here: htacces Tester
The .htacess file on the server can redirect anything. Add the line:
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
See this post from hosting company, media temple for an example. Your hosting company should have specific instructions.
https://mediatemple.net/community/products/grid/204643080/how-do-i-redirect-my-site-using-a-htaccess-file
Accessing htacess can be done via FTP. I recommend FileZilla which is free and open source. https://filezilla-project.org/
See this article for additional info on htacess.
https://httpd.apache.org/docs/2.4/howto/htaccess.html
I'm not entirely sure what the question is here. Django doesn't take the querystring into account when you set up URLs, so your redirect view will work for everyone. All you then need to do is to pass on whatever query arguments you received.
from urllib.parse import urlencode
def redirect_everyone(request):
return redirect('/grandchallenges?' + urlencode(request.GET))
I am developing a web application in tizen to integrate with facebook and I am getting "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains" error. I have searched a lot and I am not clear about what I have to mention in "App Domains" (I am developing app for mobile) section after getting appId. Please help me to resolve this error
It sounds like a Cross Domain AJAX Request problem. You have to allow the access in your config.xml file - either each url you call, or for all (*):