Wednesday, February 17, 2016

Debugging a print issue | Chrome

To access the Rendering Settings on Chrome debugger. Enable by clicking on the drop down on extreme left icon.

When working with CSS and DIV issues, Chrome debugger is a great first step and then if the JSP has an issue with missing end DIV tags, developers need to go in and indent and figure out the missing or DIV tags.

 


Check Emulate Print media to the view the page with print media check. and you can also run javascript Jquery commands in console to find any Div with hidden elements.




You can also delete various Div classes and figure the faulty DIV.




Tuesday, February 16, 2016

Enabling SEO | Testing with IHS

To test the SEO on local, you need to have corresponding rewrites and rewrite engine turned on in
C:\IBM\HTTPServer\conf and check logs in C:\IBM\HTTPServer\conf. Also if you have multiple esites, it is important to get the virtual host for each esite and allowed host setting in wc-server.xml

<VirtualHost *:80>
RewriteEngine on

RewriteCond %{REQUEST_URI} !^/webapp.*$
RewriteCond %{REQUEST_URI} !^/wcsstore.*$

</VirtualHost>


<VirtualHost  abcd.localhost.com:80>
RewriteEngine on

RewriteCond %{REQUEST_URI} !^/webapp.*$
RewriteCond %{REQUEST_URI} !^/wcsstore.*$

</VirtualHost>

C:\Windows\System32\drivers\etc
127.0.0.1       localhost abcd.localhost.com

Command prompt: C:\>ipconfig /flushdns

In wc-server.xml find this section and enable context root.

<SEOConfiguration defaultUrl="" dynamicUrl="true" enable="true">
    <context-root-rewrite value="/" />
</SEOConfiguration>