Posts by mattmatt88

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

It worked with that code. Is that ok according to performance etc.?

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST}  ^www.mypage.us [nocase]
RewriteRule ^(.*)         http://mypage.us/$1 [last,redirect=301]
RewriteCond %{HTTP_HOST}  ^www.mypage.co.uk [nocase]
RewriteRule ^(.*)         http://mypage.co.uk/$1 [last,redirect=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

no one ever had a page where he uses one domain per language?

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

still have no solution.

I use WPML. It works with the main domain to automatically remove the www. But the www isn’t removed for domain for the second language.

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

anyone?

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

I think I would need a code like the following. But how can I combine it with the standard htaccess code above?

RewriteCond %{HTTP_HOST} ^www.mypage.com$ [NC]
RewriteRule ^(.*)$ http://mypage.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.mypage.de$ [NC]
RewriteRule ^(.*)$ http://mypage.de/$1 [R=301,L]
63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

Hello.

I use two domains for my website (for two different languages). e.g. mypage.com -> english mypage.de -> german

the problem is that for the second domain, the htaccess rules doesn’t work (to remove the www in the domain).

Do you have an idea, how I can change the code to make it work?

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

and ideas?

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

Hello,

This isn’t really about developing but developers may know it:

I need to highlight already visited links on dynamic created pages (for example a list of products on amazon). Amazon usually don’t highlight visited links in a different color, but there is an extension for chrome that can do that: https://chrome.google.com/webstore/detail/change-colors/jbmkekhehjedonbhoikhhkmlapalklgn

The problem is, that the highlighting doesn’t work for products in a product list that dynamically changes, like: http://www.amazon.com/b/ref=sr_aj?node=1292115011&ajr=0

Do you have an idea how to always highlight products I’ve ever clicked, doesn’t matter on which amazon page I see it?

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

That worked very well. Although I will never understand these kind of codes ^^

Thanks a lot

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
mattmatt88 says

Hello

I’ve got lot of different image URLs like these

http://mypage.co.uk/images/2012/4123hu480._BO2,204,203,200.jpg
http://mypage.com/fav9hu3.9033,210,200.jpg

I need to change them (I think with preg_replace), so that the content between the last two dots disappears.

So the links should be:

http://mypage.co.uk/images/2012/4123hu480.jpg
http://mypage.com/fav9hu3.jpg

Note that there might be other dots in the URL. Only the content between the last two dots should be cleared.

Can you help me with that?

by
by
by
by
by
by