You are here:  » Permalink Issues


Permalink Issues

Submitted by michaelpblythe on Wed, 2011-12-28 14:52 in

I appear to have a problem with the permalinks on my site, the pages work as expected with the plugin although im having difficulties with 'Blog Entries'. When i add a new menu item which points to a named 'Category' it defaults back to domain.co.uk/shopping as defined in the permalinks.

Any thoughts?

Regards,

Michael

Submitted by support on Wed, 2011-12-28 16:35

Hi Michael,

Please could you describe the steps ( from /wp-admin/ ) that you are taking to add a new menu item to the point at which an incorrect permalink is created.. I have created some test blog posts on my development server in a named category but wasn't able to create a menu link to them that was incorrectly linked...

If you could also post your installation URL (I'll remove before publishing your reply) that will help...

Thanks!

Cheers,
David.
--
PriceTapestry.com

Submitted by michaelpblythe on Fri, 2011-12-30 10:38

Hi David,
I'm not sure if i have a general permalink issue with my site in general as i've noticed my Facebook Comments keep using www.example.co.uk/shopping rather than the 'real' URL of the page e.g. http://www.example.co.uk/product/Xbox-360-S-4-GB-Kinect-sensor-Carnival-game-3-month-Xbox-Live-subscription.html

In terms of the steps, i've logged into wp-admin -> Settings -> Permalink Settings -> Custom Structure = /shopping

Hope there is enough detail in the above?

Kind Regards,

Michael

Submitted by support on Fri, 2011-12-30 10:53

Hi Michael,

That would indicate that either another plugin or your theme is generating a canonical header back to /shopping. To fix this, go to wp-admin > Settings > PriceTapestry.org and under the Advanced heading set Header Exclusivity to TRUE. That will ensure that PriceTapestry.org has full control over the page header for dynamically generated pages (including the correct canonical header).

Cheers,
David.
--
PriceTapestry.com

Submitted by michaelpblythe on Fri, 2011-12-30 11:15

Hi David,
I'll take a look into this as i've never came across - 'canonical headers' before?
I've just attempted your fix, the bizarre thing is the Facebook comments disappeared and the drop-down menu in the header didnt work as expected, the 2nd/3rd level menus show for a split second and disappear.

I know i'm verging out of the Price Tapestry arena and more into Wordpress but any help would be great!

Regards,

Michael

p.s. - as soon as my site has generated commission i plan to donate as you've provided some excellent support!

Submitted by support on Fri, 2011-12-30 12:21

Hi Michael,

Could you post a product page URL showing the problem (i'll remove before posting your reply) and I'll take a look for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by shaunmac on Mon, 2014-02-03 17:23

I am having a similar issue but with mine when I click on a compared product it defaults to my home page. This used to work fine but now its all messed up the url is {link saved} any help would be great since im stuck

Submitted by support on Mon, 2014-02-03 17:54

Hi Shaun,

Almost all links in your new sub-directory installation seem to be re-writing to /home/ so I think this may be an issue in your .htaccess. Could you check whether line 3 (based on the distribution WordPress .htaccess) is

RewriteBase /home/

...this should be:

RewriteBase /

If that's fine, go to /wp-admin/ > Settings > General, and check that WordPress Address (URL) and Site Address (URL) are both:

http://seeds.example.com

(where example.com is your site's domain name of course)

Finally, from Settings > Permalinks make sure (at least for testing) that the "Numeric" option is select (which doesn't end in "/").

If that's all in order, or the same problem persists after making any chances as described let me know and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by shaunmac on Mon, 2014-02-03 20:32

Ok I check all and the htaccess is ok checked the site urls and they are fine also. I changed the permalinks to numeric but it did not fix it.

Submitted by shaunmac on Mon, 2014-02-03 20:34

this is what my htaccess file reads

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

RewriteCond %{HTTP_HOST} ^seeds\.example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.seeds\.example\.com$
RewriteRule ^/?$ "http\:\/\/seeds\.example\.com\/home\/" [R=301,L]

Submitted by support on Tue, 2014-02-04 08:28

Hi Shaun,

Ah - it looks like the rewrite section at the end is causing the problem, if you replace with:

RewriteCond %{HTTP_HOST} ^seeds\.example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.seeds\.example\.com$
RewriteRule ^/?$ "http\:\/\/seeds\.example\.com\/" [R=301,L]

...that will remove the home/ folder on your alternative host name rewrites - I think that should be all it is...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by shaunmac on Tue, 2014-02-04 14:17

I replaced the code with no luck. But it did seem to mess up my home page and some of the other page layouts. But it still redirect to home. This is what my htaccess file looks like now.
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

RewriteCond %{HTTP_HOST} ^seeds\.example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.seeds\.example\.com$
RewriteRule ^/?$ "http\:\/\/seeds\.example\.com\/" [R=301,L]

This all seemed to start when I changed my theme. I did not change anything with the theme I just changed it to a different one to see how it would look and now I am having this issue. Thank you in advance for your help. If you need my wordpress info so you can look yourself just let me know.

Submitted by support on Tue, 2014-02-04 14:23

Hi Shaun,

No problem - could you follow up by email with your current .htaccess attached and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com