I have a menu in Flash without access to it's links. One of the items leads to this link: http://dev.infinityfitness.pl/rozklad, but the domain is not mine.
Is it possible to override this link using htaccess that if user clicks in this menu item the redirect leads him to something like this http://infinityfit.dnawrot.nazwa.pl/rozklad?
The .htaccess file would need to reside on the domain you don't have access to, unfortunately.
It's not possible to "intercept" client side links inside of a flash app if you don't have access to the source code.
Related
i dont know whats wrong with my settings .i am using opencart 2.3.0.2 .Enabled ssl from settings of my cms.
when i run
https:sharishari.com
it works fine.
i want when i or any one enter my domain name sharishari.com it should redirect to https:sharishari.com
each time i have to write complete url with https to go on https.
and second thing its view is non responsive and non functional when i write
sharishari+ctrl Enter .
here is my
root config file
i removed www from the domain
and admin
config file
https://codeshare.io/2pAlLV
i just shared the above part .db part excluded in sharing
Please i will be very thankful if somebody sort out my problem.best regards
After enabling SSL from your open cart backed, first of all, you will have to update your config files for both catalog and admin. You will have to edit link as "https".
Apart from that, you will have to edit your links provided on header.tpl. Just find and replace all 'http' to 'https'. You can find header.tpl at catalog/view/theme/themename/common/header.tpl
Hope that helps.
You need to change in both
config.php
admin/config.php
to https:
also go to your catalog/view/thene/YOURTHEME/common/header.tpl
And their all of your scripts, css files and so forth to https
And easy way to find them do a ctrl+f search on http and you will find the,
If you have any custom code like social media links, you need to change them to https aswell.
OK you need to redirect to HTTPS (opencart does not do this when enabling SSL) and you need to edit your theme header file, see Innervisions comment
Opencart only switches to SSL on checkout, account, login, etc pages.
How do I prevent my page say 'index.php' and all other web pages in different folders on server to be accessed anyone by typing the path in address bar of browser like www.kkweb.com/web/index.php. Kindly help.
If you have php correctly installed and running, they get the parsed site. I.e., they can open the website, but cannot read your source code. If you want to avoid even that, you can implement access protection. Google .htpasswd and .htaccess for that.
I hope this is not a very stupid question. I have to rewrite the url's of an existing website. I have never done that before, so I'm a little bit confused. I have allready written some rules that make a page like faq.php be accessible also by entering only faq without the .php extension, but the page fap.php it's still accessible and in the footer when I move the mouse over the faq icon the link shown in the browser is faq.php. To make the browser display faq and not faq.php do I have to change the href link in the page manually or there is another way?
For example: in this website(stackoverflow) when you move the mouse over questions, tags, users or other links, the browser displays only /questions (or the others) without .php(or whatever they used to built the website). How can I achieve that?
What you see in the status bar is what your server sends to the browser.
To remove .php from faq.php you must either
send only faq (PHP) or
replace the contents of href attributes on the client side (JavaScript).
I want to restrict access to a folder on my server so that visitors may only access the contents (a web application) via links in the same domain. Can I do this using .htaccess? To be clear, I simply want to prevent direct access to the contents so that visitors are routed through other pages on my website in order to get there.
Sounds to me you want URL rewriting. Rewrite all URLs to point to a single point of entry (i.e. the index page), and have the route set as a GET variable (i.e. index.php?r=css/file.css).
This way, you have complete control over what goes where, and you can include or redirect your users accordingly.
I am renewing my web page and changing the site structure. It was in Asp and now it will be in Asp.Net
So page URLs will be modified. And some pages will be removed, some will be added. But mostly, the content and page names are same, only URLs will change.
The site has SEO work in it and we want to loose it minimum.Site is registered in Analytics and Webmaster Tools.
Google searches will end up blank pages and I don't want to loose my rank.
So I'm looking for a way to inform Google about new page URLs. Domain is same, only URLs. For example: the home page was /default.asp and now /home.aspx
Is there a way to tell Google that a particular URL address or page name has changed?
If all that is changing are the page URLs, Google Analytics cannot "know" that a page is the same, just with diferent URL.
But, you could apply a customized pageview using the _trackPageView() method, giving it the original url as parameter.
If you choose to do this, you will have to exclude the line that uses the method in the original GA code and apply it elsewhere, or pass the parameter to it directly with the orignial URL. All this is done in each page.
You can also read more about the method here.
For IIS (Asp.Net) you want to look into the following to find out how to do 301 redirects:
Response.RedirectPermanent(...) for redirecting from a page
or
"IIS 7 Routing Module and web.config" to set up bulk redirecting
I'd also suggest you consider supporting Search Engine Friendly (SEF) URLs while your making the move. The Routing Module can help you there as well.
You need to implement some form of 301 (301 is key) redirects. This way when google or any other search hits the old page, the index is refreshed with the new page. Asp.net allows you to do these redirects even at the IIS level, and where I'd suggest that they live. You'll also want to submit an up to date site map on webmaster tools.
Edit: Here's a good link on the redirects, http://www.iis.net/ConfigReference/system.webServer/httpRedirect