Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

krneki

Members
  • Joined

  • Last visited

  1. I've already searched thoroughly for tutorials on how to configure .htaccess but I just can't get it work properly no matter what I try. Hopefully you will be able to help me out, let me explain the current situation. There are already several 301 and other redirections in htaccess files, so let me simplify it and if it still won't work, I'll post full .htaccess files for a more detailed description. Folder of old HTML website: public_html/old Folder of new Wordpress based website (Site Address is set to www.domain.com): public_html/new As of now, new Wordpress website works fine if one opens www.domain.com or www.domain.com/new. However, the old website is still accessible via www.domain.com/old, so I would like to redirect it to the new website. To put it in other words, I would like to permanently redirect absolutely everything from www.domain.com/old as well as subfolders to the new website. Could anyone please write me down which rules should I use in .htaccess and in which folder should I put it? The second problem is about new Wordpress website. Everything works fine except when I try to use SEO URL's in http://domain.com/sample-post/ format. In that case www.domain.com will open fine, however I get the followiong 404 error for all subpages (e.g. www.domain.com/news etc.) "Not Found The requested URL /index.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." Here's .htaccess from WP folder (public_html/new): RewriteEngine On DirectoryIndex index.php RewriteBase /new RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /new/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /new/index.php [L] </IfModule> # END WordPress Thanks a lot for help!
  2. I've found out that most WordPress themes are very minimalistic in terms of graphics. They only contain basic elements + usually large animated slider (taking half of screen), which is not what I'm looking for. Such themes are not really useful if you don't have truly professional, beautiful images to populate sliders and image rotators. Perhaps I might have more luck with Joomla? I need really well designed, beautiful, rich in graphics theme with premium support if possible. Topic is: gym, fitness, sport in general and classic company presentation. Where may I found such themes? There are so, so many websites that offer Wordpress and Joomla themes so I'm really struggling here since I've never really deeply investigated them. I know that Themeforest is good, are there any other good alternatives? Thanks for help.
  3. Hello, let me explain my situation. Outdated web store is located in public_html/shop.php , while new Opencart store resides in public_html/shop/. Links look like this for old store: http://www.old-domain.com/shop.php?cat1=first_category&kat=chocolate And for new Opencart store: http://www.new-domain.com/index.php?route=common/home New Opencart store can also be accessed by http://www.old-domain.com/shop/, but only index page, because all links are pointed to http://www.new-domain.com As you may see, domain name for new web store is different, which is why I'm afraid that Google will treat it like a completely new web store and thus that my ranking in search results will drastically degrade. I was wondering how to make complete redirect from old to new store and tell Google to retain current website ranking? Do you perhaps have any other suggestions? Thanks!
  4. Hello, I'm looking for some help with the following logo design: - EXCEL must have the same font style (while the name itself will probably change, but that doesn't affect anything else) - font for "shop" is undefined, so I'd be glad for any font advises here - background must remain #3f5765, text color must be yellow, but can be in different shade - logo will be used in similar web design: journal.digital-atelier.com/2/ Apart from mentioned, the biggest problem is that "e" character. I just can't find good font, design and dimensions for it. It just doesn't fit. Could you help me out with that? Thanks in advance!
  5. I've been trying to set few redirections in cPanel, but they don't work, they simply don't redirect to anyhting. Hosting's support say that there might be some incompatibilities in htaccess files, but I've already tried to create new .htaccess files and apply desired rules via cPanel and it still didn't work. Here are redirections I'd like to have: http://www.domain1.com/shop/ and domain1.com/shop/ should redirect to http://www.domain2.com domain2.com should redirect to http://www.domain2.com (wildcard enabled because of SSL) Document root of http://www.domain1.com is public_html Document root of http://www.domain2.com is public_html/shop/ Here is .htaccess from public_html Options -Indexes Options +FollowSymLinks Options -MultiViews RewriteEngine On RewriteBase / RewriteRule ^teksti/([^./]+)([/]?)$ teksti.php?niceid=$1 [T=application/x-httpd-php,L] RewriteRule ^clanki/([^./]+)([/]?)$ clankishop.php?niceid=$1 [T=application/x-httpd-php,L] RewriteCond %{HTTP_HOST} .*www.domain2.com RewriteRule ^$ sportna_prehrana.php [T=application/x-httpd-php,L] RewriteRule ^shop.php$ sportna_prehrana.php%{QUERY_STRING} [T=application/x-httpd-php,L,R=301] RewriteRule ^cart.php$ nakup.php%{QUERY_STRING} [T=application/x-httpd-php,L,R=301] RewriteRule ^pagefit/$ pagefit/pagefit.php RewriteRule ^forum/$ forum/index.php #Redirect permanent fitnes_wellness.php pagefit/ #RewriteRule ^internet.html$ internet.php?%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^programska_oprema.html$ programska_oprema.php?%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^storitve.html$ teksti.php?act=storitve&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^podjetje.html$ teksti.php?act=opodjetju&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^pogoji.html$ teksti.php?act=pogoji&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^privatnost.html$ teksti.php?act=privatnost&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^shop.html$ shop.php?aktualno=1&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^podjetje/([^./]+).html$ shop.php?nicepod=$1&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+).html$ shop.php?nicecat0=$1&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/a/([^./]+).html$ shop.php?nicecat0=$1&niceart=$2&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+).html$ shop.php?nicecat0=$1&nicecat1=$2&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+)/a/([^./]+).html$ shop.php?nicecat0=$1&nicecat1=$2&niceart=$3&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+)/([^./]+).html$ shop.php?nicecat0=$1&nicecat1=$2&nicecat2=$3&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+)/([^./]+)/a/([^./]+).html$ shop.php?nicecat0=$1&nicecat1=$2&nicecat2=$3&niceart=$4&%{QUERY_STRING} [T=application/x-httpd-php,L] ErrorDocument 404 /404.php #DirectoryIndex fitnes_wellness.php #DirectoryIndex sportna_prehrana.phpRewriteCond %{HTTP_HOST} ^domain1.com$ [OR] DirectoryIndex vstop.php RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^fitnes_wellness.php$ "http\:\/\/www\.domain1\.com\/pagefit\/" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^fitnes_wellness.php/$ "http\:\/\/www\.domain1\.com\/pagefit\/" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^pagefit/urednik/$ "http\:\/\/www\.domain1\.com\/pagefit\/urednik\/index\.php" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^pagefit/podstrani/$ "http\:\/\/www\.domain1\.com\/pagefit\/podstrani\/index\.php" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^kontakti/$ "http\:\/\/www\.domain1\.com\/kontakti\/index\.php" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^sportno_drustvo\.php$ "http\:\/\/www\.domain1\.com\/sdpage\/" [R=301,L] RewriteCond %{HTTP_HOST} ^domain2\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.domain2\.com$ RewriteRule ^/?$ "shop\/" [R=301,L] RewriteCond %{HTTP_HOST} ^domain1\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.domain1\.com$ RewriteRule ^shop\/?$ "http\:\/\/www\.domain2\.com\/" [R=301,L] Here is .htaccess from public_html/shop/ # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "\.(tpl|ini|log)"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On DirectoryIndex index.php index.html site-down.php install.php # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase /shop/ RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none RewriteCond %{HTTP_HOST} ^domain2.com$ RewriteRule ^(.*)$ "http\:\/\/www\.domain2\.com\/$1" [R=301,L] Does anybody know where's the problem? Thanks!
  6. As you may see from the following image: http://shrani.si/f/47/NX/CSI3Y2A/indexw.jpg I need to create simple intro HTML page with full screen background. That wouldn't be so hard if it could only be compatible with one resolution, but I really can't get it to be really responsive. On top of that, this page should be IE8+ compatible so I can't just use any CSS rules. There are basically 3 type of elements here: - background (blue lines) with dimensions 1920 x 1080, but I can adjust that in Photoshop since I have sources, - logo (which should always be positioned on top of blue lines as it is on sample image, but as of now I just merged logo on top of background so it's just one image in order to make easier layout, it actually can stay that way) , - 5 small banners with HTML links (nice hover effect would be more than welcomed). Here's my code with more or less trial & error method, so there are probably better solutions: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Intro</title> <link href="index.css" rel="stylesheet" type="text/css"> </head> <body> <body background="index.jpg" class="bg"> <div style="outer"> <div class="centered"> <table width="200" border="0" align="center" cellpadding="0" cellspacing="50"> <tr> <td><img src="icon3.png" width="168" height="128" alt=""/></td> <td><img src="icon6.png" width="128" height="128" alt=""/></td> <td><img src="icon4.png" width="168" height="128" alt=""/></td> <td><img src="icon9.png" width="128" height="128" alt=""/></td> <td><img src="icon5.png" width="128" height="128" alt=""/></td> </tr> </table> </div> </div> </body> </html> @charset "utf-8"; img.bg { /* Set rules to fill background */ min-height: 768px; min-width: 1024px; /* Set up proportionate scaling */ width: 100%; height: auto; /* Set up positioning */ position: fixed; top: 0; left: 0; } @media screen and (max-width: 1920px) { /* Specific to this particular image */ img.bg { left: 50%; ; /* 50% */ } } .outer{ position: relative; } .centered{ position:absolute; top:50%; height:10em; margin:0px auto; left:0; right:0; text-align: center; display:block; }
  7. I'm looking for an idea (or even better - realization ) to make the following background more compatible with transparent banners (image of boots with text in this example): As you may see, dumbbell is dark grey, surrounded with too bright colors. This makes text hardly readable, so in my opinion, there should be less contrast difference. I'm not sure what are the viable options here, perhaps you might have any nice ideas? Thanks! Here is the source background: http://shrani.si/f/2U/12C/2yxAUglq/istock000004112327medium.jpg And that's how website will roughly look like (with different background amongost other things of course): http://journal.digital-atelier.com/2/
  8. Whenever I enable SEO in Opencart settings, all pages, articles etc. who have SEO links gets redirected to public_html/index.php (Opencart is installed in public_html/shop/ folder). Here is .htaaccess from root public_html folder: Options -Indexes Options +FollowSymLinks Options -MultiViews RewriteEngine On RewriteBase / RewriteRule ^teksti/([^./]+)([/]?)$ teksti.php?niceid=$1 [T=application/x-httpd-php,L] RewriteRule ^clanki/([^./]+)([/]?)$ clankistran.php?niceid=$1 [T=application/x-httpd-php,L] RewriteCond %{HTTP_HOST} .*www.domain.com RewriteRule ^$ sportna_prehrana.php [T=application/x-httpd-php,L] RewriteRule ^stran.php$ sportna_prehrana.php%{QUERY_STRING} [T=application/x-httpd-php,L,R=301] RewriteRule ^cart.php$ nakup.php%{QUERY_STRING} [T=application/x-httpd-php,L,R=301] RewriteRule ^xfit/$ xfit/xfit.php RewriteRule ^forum/$ forum/index.php #Redirect permanent page_wellness.php xfit/ #RewriteRule ^internet.html$ internet.php?%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^programska_oprema.html$ programska_oprema.php?%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^storitve.html$ teksti.php?act=storitve&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^podjetje.html$ teksti.php?act=opodjetju&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^pogoji.html$ teksti.php?act=pogoji&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^privatnost.html$ teksti.php?act=privatnost&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^stran.html$ stran.php?aktualno=1&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^podjetje/([^./]+).html$ stran.php?nicepod=$1&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+).html$ stran.php?nicecat0=$1&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/a/([^./]+).html$ stran.php?nicecat0=$1&niceart=$2&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+)/a/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&niceart=$3&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+)/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&nicecat2=$3&%{QUERY_STRING} [T=application/x-httpd-php,L] #RewriteRule ^([^./]+)/([^./]+)/([^./]+)/a/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&nicecat2=$3&niceart=$4&%{QUERY_STRING} [T=application/x-httpd-php,L] ErrorDocument 404 /404.php #DirectoryIndex page_wellness.php #DirectoryIndex sportna_prehrana.phpRewriteCond %{HTTP_HOST} ^xy.com$ [OR] DirectoryIndex vstop.php RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^page_wellness.php$ "http\:\/\/www\.xy\.com\/xfit\/" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^page_wellness.php/$ "http\:\/\/www\.xy\.com\/xfit\/" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^xfit/urednik/$ "http\:\/\/www\.xy\.com\/xfit\/urednik\/index\.php" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^xfit/podstrani/$ "http\:\/\/www\.xy\.com\/xfit\/podstrani\/index\.php" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^kontakti/$ "http\:\/\/www\.xy\.com\/kontakti\/index\.php" [R=301,L] RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^sportno_drustvo\.php$ "http\:\/\/www\.xy\.com\/sdx\/" [R=301,L] Here is .htaccess from Opencart (public_html/shop/) folder: # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "\.(tpl|ini|log)"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On DirectoryIndex index.php index.html site-down.php install.php # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none As you can see, I inserted DirectoryIndex index.php index.html site-down.php install.php into Opencart's .htaccess because otherwise I got 403 error whenever I tried to visit my front-end unless I typed exactly /shop/index.php into URL. Could anyone please help me out with this?
  9. I'm working on Opencart website with the Journal theme. Please see following links: http://journal.digital-atelier.com/2/ http://journal.digital-atelier.com/3/ http://journal.digital-atelier.com/5/ As you may see, background plays an important role, so I really need to choose a neat one. The topic should be fitness, gym, workout, supplements or something else related to that. I've already browsed through a lot of wallpapers on Google, but couldn't find any appropriate ones. If possible, background should be in yellow or blue color (or a combination), which even hardens the choice since most of such wallpapers have white or black background, which is not really suitable for my case. Implying to the demo wallpapers from upper links, wallpaper should be rich, full of colors but not oversaturated. It's a really tough topic, finding a good wallpaper for football, skiing or any other more popular sport would be a breeze. I've already considered on taking a nice blue background and putting fitness model on each side of it, but it would probably come out amateur. I'm just not that skilled in Photoshop. My question is practically a request. I would be glad if you could provide me any ideas, advices, good links where such wallpapers/backgrounds can be found, maybe even some examples etc.? Thanks in advance .

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.