Jump to content

My website URLs doesnt open with www.


Recommended Posts

Dear Admin/User, 

 
I am working on 99trendz.com, a PS version 1.5.6.1 website and developed on Transformer theme bought from Themeforest. Since, i have updated my website with latest PS version, the internal links doesnt open with www.
 
For ex, go to 99trendz.com, it will open with and without www but in case you open any URL, it will show you as 99trendz.com/XYZ. Now prefix www. and open as www.99trendz.com/XYZ; it will give you not found error. 
 
In case i set my shop/SSL to www.99trendz.com, then URLs doesnt work without www. and indexation doesnt works.
 
Please please! Anyone who can help me fix this issue. I will be grateful to you for my entire life.
 
Please help.
 
Email me here and at [email protected]
 
Thanks a ton in advance. Attached is my .htaccess file
 

Htaccess.txt

Link to comment
Share on other sites

Dear Sir, i have tried this already. You seems pretty experienced and i believe you can help me and fix this issue. Let me explain this to you in detail situation wise.

 

WITH WWW.

 

When i set my shop name, SSL and base as www.99trendz.com, www.99trendz.com, / respectively; the indexation in navigational layer module fails to index. My website homepage goes to www.99trendz.com and when i open any of the URL, lets say WOMEN category in menu, it goes to http://www.99trendz.com/89-for-women and give me error as:

THIS PAGE IS NOT AVAILABLE

We're sorry, but the Web address you've entered is no longer available.

To find a product, please type its name in the field below.

Search our product catalog:  

 

WITHOUT WWW.

 

When i set my shop name, SSL and base as 99trendz.com, 99trendz.com, / respectively; the indexation in navigational layer module works well. My website homepage opens as 99trendz.com and all URLs open too. When i open any of the URL, lets say WOMEN category in menu, it goes to 99trendz.com/89-for-women and open but if i prefix it with www., it makes the link as : http://99trendz.com/89-for-women?controller=404

 

and gives the following error:

THIS PAGE IS NOT AVAILABLE

We're sorry, but the Web address you've entered is no longer available.

To find a product, please type its name in the field below.

Search our product catalog:

 

 

Please please help Sir!!

 

Thanks a ton/Sumit vasudeva/India

Edited by Sumit Vasudeva (see edit history)
Link to comment
Share on other sites

that is just weird..

 

I can recreate it...

 

http://99trendz.com/138-casual-shirts-99trendz
www gives me http://99trendz.com/138-casual-shirts-99trendz?controller=404

 

some things to try/check.

 

- re attach your .htaccess (current) without doing any changes to shop i.e. non-www

- ensure that you domian hosting uses the same root directory of your main domain, some give you the option to use a httpsdocs (I thing that is the name).

- post a screen shot of this

12.17.2013-15.05.png
http://screencast.com/t/lWgKGfApImKU

 

-post a screen shot of this

12.17.2013-15.07.png
http://screencast.com/t/Ho9tOzBngenD

 

note: don't get stopped by this, you have a nice shop and you need to also be adding products/images/shipping...the shop works 'pretty good' so as you wait for issues like this to be resovled..work on other things...:)

 

Also

  • Like 1
Link to comment
Share on other sites

Dear Sir, thanks for your response. Appreciate it. My hosting provider has created some htaccess.bak, htaccess(1 to 7).bak files for 7 times. I have attached my htaccess main file with this email to you, please check if there is any error or not?

 

Also, i see two screen shots sent by you. Do you want me to make the settings like you sent or shall i sent the settings that i have on these pages to you.

 

Also, please sir, tell me how can i upload products in bulk to store via admin panel. 

 

I really doesnt care if my URLs are not opening with www. but my index pages does, so in this case does anything matters to SEO or google doesnt accept it. Does this makes any difference.

 

Please be my teacher, Sir! You are great and have great personality.

 

Sincere regards/Sumit

Link to comment
Share on other sites

Dear Sir, i have not understood the following points. Please try to elaborate.

 

- re attach your .htaccess (current) without doing any changes to shop i.e. non-www

- ensure that you domian hosting uses the same root directory of your main domain, some give you the option to use a httpsdocs (I thing that is the name).

Link to comment
Share on other sites

Dear Dear, please help me. My htaccess is attached here. Please do the needful

 

 

========================================================================================================

 

 
 
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
 
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
 
 
# Disable Multiviews
Options -Multiviews
 
RewriteEngine on
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
 
# Images
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
 
# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^99trendz.com$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>
 
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
</IfModule>
 
FileETag INode MTime Size
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript
</IfModule>
</IfModule>
 
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404
 
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
 
========================================================================================================
Link to comment
Share on other sites

Hi.

 

Follow what el patron is asking you :

 

He means , go to BO > SEO and url and change the shop name to www.yoursitename.com and generate htaccess again and paste it,

 

then change shop name to without www and regenerate htaacess and paste that version.

 

I have the same behaviour btw, but i dont care much since most visitors will start from the main website anyway.

Edited by indus (see edit history)
  • Like 1
Link to comment
Share on other sites

Hi

 

I noticed, leaving shop name empty might be the problem. Now it seems to be working fine for me if i add a www before any url.

 

Always remember to regenerate the htaccess file by turning on and off the friendly url option.

 

Edit : doesnt seem to work. so nvm. But my layered navigation works fine with either www or non www.

Edited by indus (see edit history)
Link to comment
Share on other sites

Hi

 

What benefits from an SEO perspective is that you stick to either one of them and not both. Otherwise you end up with either urls and google sees it as 2 different urls. That is not good.

 

The redirect for all urls should not be too difficult, i will let you know after i do some tests on my own to fix it.

 

As far as the layered navigation, make sure you do a regenerate urls after any changes.

Edited by indus (see edit history)
Link to comment
Share on other sites

I have a similar issue, I believe it is specific to some hosts, I use Bluehost in my case and they have no cule why this is happening.

 

I sort of fixed it with a work around.

 

1. Set up your store and SSL URLs to www.99trendz.com

2. You should have 2 .htaccess files. One in your root folder and one in your prestashop folder assuming you did not install PS in the root
 

--> in the root folder .htacces should have rewrite conditions looking like ^99trendz.com$, add the www to it like so

 

RewriteCond %{HTTP_HOST} ^(www.)?99trendz.com$
RewriteCond %{REQUEST_URI} !^/prestashop/

 

--> in the Prestashop/ folder, i think this is what you posted above, change all your addresses to 

^(www.)?99trendz.com$

 

Make back up copies of both files before.

 

After you've done that clear your cash (shift F5) and regenerate your thumbs if they don't display, if necessary turn off then on again friendly URLs if your links don't work.

 

In my case for some strange reason when the URL is set up with the www, java script and ajax in the back office do not work. In case you have the same issue, the work around I've found is to log into admin without the www, this works just fine except for a nag warning on the dashboard. Your admin address should then look like

 

https://99trendz.com/prestashop/admin/ (works without the "s" as well)

 

hope this helps

Edited by claybourg (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...