1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Irritating permalink issue

Discussion in 'Web Design' started by Holykruelty, Jan 21, 2017.

  1. Holykruelty

    Holykruelty Junior Member

    Joined:
    Jan 29, 2014
    Messages:
    120
    Likes Received:
    25
    So I had a theme created but the developer took the lazy way out and had it rely heavily on a plugin.

    The plugin in question is changing my url.

    I have set my permalink setting to:

    Site.com/%postname%.

    The plugin is making my url like this:

    Site.com/example/%postname%/

    I've tried editing the .ht access as well but it still doesn't work. The /example/ doesn't exist if you visit the directory.

    //301 Redirect Entire Directory
    RedirectMatch 301 /example/(.*) //$1

    What am I doing wrong? I like pretty urls lol.
     
  2. chillerfx

    chillerfx Jr. VIP Jr. VIP

    Joined:
    Mar 20, 2012
    Messages:
    218
    Likes Received:
    47
    Occupation:
    Web-developer and Digital Marketer.
    Location:
    Everywhere on net.
    I think you should use the URL where this file will locate into, insert it after Redirect code like

    Code:
    RedirectMatch 301 /example/(.*) http://Site.com/$1
    
    Because, redirect condition must use URL to perform redirect.

    Also check your theme for the reason why "example/" comes after your site's name.
     
  3. Holykruelty

    Holykruelty Junior Member

    Joined:
    Jan 29, 2014
    Messages:
    120
    Likes Received:
    25
    Yeah, I know. I was using that as a quick example instead of typing my whole .ht file. I can find mentions of it in the theme but editing or deleting them do not work.

    RewriteEngine On
    RewriteRule ^\./$ /example/ [L]

    doesnt work either
     
  4. SunnyLeon

    SunnyLeon Jr. VIP Jr. VIP

    Joined:
    Oct 13, 2013
    Messages:
    452
    Likes Received:
    171
    Gender:
    Male
    Location:
    Outside the Matrix
    If it s a premium theme it usually has a support contact form or a forum to contact developers. That example tag also makes me think it s something you should be able to change within the theme settings..
     
  5. Scott-NYC

    Scott-NYC Registered Member

    Joined:
    Aug 26, 2010
    Messages:
    53
    Likes Received:
    39
    Gender:
    Male
    Occupation:
    Online Marketing & Real Estate Investing
    Location:
    New York City
    Home Page:
    What is the name of the plugin causing the problem?
     
  6. Holykruelty

    Holykruelty Junior Member

    Joined:
    Jan 29, 2014
    Messages:
    120
    Likes Received:
    25
    The problem is they are insisting its a plugin issue and not a theme issue. The developer created a them with some ideas I had, but they made it rely on a plugin for 90% of the functions lol. I disable the plugin and the site is worthless.

    I've spent hours upon hours staying up late going over the php but i just cant pinpoint the issue :p In the long run, I guess its not too big of a deal. Just an eye sore.
     
  7. chillerfx

    chillerfx Jr. VIP Jr. VIP

    Joined:
    Mar 20, 2012
    Messages:
    218
    Likes Received:
    47
    Occupation:
    Web-developer and Digital Marketer.
    Location:
    Everywhere on net.
    You did try with the correct code, I didn't figure out your problem initially.
    If possible let me know the plugin name? I will check it out and revert back.