I have a friend with a Japanese blog, using wordpress, he has the pretty url. Basically domain.com/postname. Well an example of a url might be. "domain.com/テスト". His blog is hosted on an Apache web server.
I am running IIS7 and am trying to get my Japanese blog going like it should, and have "domain.com/テスト" show just that one post when you visit that url. My thinking is it has something to do with url-encoding. I can't find too much information on utf-8 or anything about getting international characters to work in a url.
Any help on this would be great. I am thinking I should change something in the web.config file, but not to sure. I haven't had a lot of experience with IIS7.
Thanks.
This was pulled off of forum post linked to above.
Try adding the following code at the beginning of the wp-config.php file:
if ( isset($_SERVER['UNENCODED_URL']) ) {
$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];}
Related
Im trying to use the Wordpress plugin TranslatePress however the French Version of the page https://fr.londonauto.autoverify.com/fr/backend-glitch/ doesn't seam to play well with the page content.
I cant see anything relevant to the issue in the console.
Works without issue in the english version - https://fr.londonauto.autoverify.com/backend-glitch/
Wondering if anyone out there has experience with this plugin that might be able to advise.
It's obvious that in the /fr/ lang you missing to load many-many files. Your total requests are 104 for this page and in the FR you load only 42. It's very strange problem and I think that it has to do with you htaccess file. Can you please describe your server options, like: Cache system, Webserver type, etc? Also post your redirect rules if you have nginx or apache
Looking into our Google Analytics it seems some people are visiting pages on our site with the wrong permalink. Specifically WP is adding an extra directory on the end for some reason.
www.mysite.com/contact/ <- Correct
www.mysite.com/mysite/contact/ <- Incorrect (some people ending up here)
It seems every page on the site has this problem (some people ending up at /mysite/page/ instead of just /page/
It's a standard WP install (not in a subdirectory), the permalink structure is set as follows:
www.mysite.com/blog/%postname%/
Looking in GA, all the visitors from the wrong permalink are coming from the source/medium of direct/none.
I've ran a URL checker on the site and everything is coming up as 200 OK with none of the wrong permalinks showing anywhere.
Would appreciate any ideas here, pretty stumped on this one! Only thought I have is that maybe it's something to do with the database containing wrong links as my localhost install was localhost:8888/mysite/.
Thanks, Adam
maybe you can rewrite permalinks with help srdb
search: localhost:8888/mysite
replace: www.mysite.com
with http://
Before doing a copy of the database
Thanks for your responses. After considerable digging it turns out GA was logging visits from my local version of the site. Have resolved now.
We are currently building a site on our server that will eventually take over a current site. The problem we are running into is that all of our hyperlinks will change once we transfer over to the new site. Is there a way to link pages without hard coding in the URL?
You will probably want to use mod_rewrite to rewrite your URL from the old format to the new format. You might start at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html. If you search on mod_rewrite, you will be able to find lots of examples and tutorials to help you.
I have a problem with a Wordpress based website. Something is creating strange URLs. I know about those URLs, because Google Webmaster Developer try to Crawl them and the Crawler gets a 404 error (Not found). I have that problem in different websites:
In the first one the URLs looks like spam:
http://xxxx.com/wp-content/w3tc/apple-iphone-3gs-8gb-black-manual
In the other website the URLs make sense based on the content, but they are not valid URLs:
http://xxxx.com/portfolio/pool-view-suite-bathroom/
In other website, it's creating URLs that looks like valid, but with a ".html" in the final
If you try to access those URLs, you will get a 404 error. Curiously, when you look the "Linked By" tan in Google Developer Tools, you will see that is linked by another strange URL o there is no linked from. And that URLs are not in the sitemap, I checked it.
Thank you!
the first one is a trojan without a doubt. Quite usually, you'll find them in index.php, footer.php, header.php . If in doubt, check with an online tool like Sucuri
Once you isolate it, it's very important to know how you have it. While most people thinks they have been "hacked", in most cases you uploaded it by yourself from your own computer, so be sure to scan it thoroughly.
About the other cases, sounds more like an htaccess issue, but based on the first case, quite probably it's caused by this trojan as well. Ask your host to check the site, it's in their best interest to do it so. But assuming it's just htaccess, try this: go to Settings --> Permalinks and change the permalinks structure to anything else than what you have now. Don't hit the submit button yet. In the meanwhile, BACKUP your htaccess file and then delete it. Hit submit on the permalinks page an a new .htaccess file will be created. Try your site now. If it works, it was just a simple htaccess issue. If not, something else, going from a trojan to a server misconfiguration to anything in between
Maybe the domain was used before and you are seeing past valid urls which are now 404, or maybe these are incorrect, inbound spammy links which you would want to be 404. Duff links can be found anywhere on the internet and so no reason to think your site is generating them.
I have an issue where the URL re-write in IIS7 loads the component contents just fine, but not the site template.
Where this:
http://125valleywood.nexthometown.com/
Should look like this:
http://www.nexthometown.com/index.php?option=com_singleprop&view=singleprop&mlsnum=4200072
If I use "redirect" instead of "rewrite" everything is fine. I figure it has something to do with the domain joomla is tied to ?
My solution to this was to not use URL re-write. I instead mimicked a blind URL redirect using the DNS manager on windows server 2008. I figure it had something to do with the Joomla install not recognizing the subdomain. What I did not look into was seeing if Joomla would take a wildcard for the sitename, ie *.mysite.com. But since I never determined whether or not this was the problem in the first place, I not sure this would have been a solution.