• Resolved mrm5102

    (@mrm5102)


    Hello All,

    I have been trying to get Permalinks working on our WordPress for a week or so now and I have not been able to get it fully implemented since…

    I have read through a dozen or so posts on this WordPress forum as well as the “Using Permalinks: WordPress Codex” and “htaccess: WordPress Codex” pages, but none of them have been able to solve this issue. Maybe I am not understanding the Permalinks settings page and what has to go in the textboxes, can you ONLY include the structure tags, like %year%, %month%, %post_id%, etc…?

    This WordPress installation is installed on a Linux VM which is hosted and fully controlled by me. Using the following:

    Apache2 v2.2.2-59.1 *The mod_rewrite module is enabled for Apache2
    MySQL 5.6.28
    PHP v5.6.9
    OS = SLES 11 SP3

    Also, I have configured the WordPress Directory in /etc/apache2/default-server.conf Configured like so:

    DocumentRoot "/srv/www/wordpress"
    
    <Directory />
    	Options FollowSymLinks
    	AllowOverride All
    </Directory>
    
    <Directory "/srv/www/wordpress">
    	Options Indexes FollowSymLinks MultiViews
    	AllowOverride All
    	Order allow,deny
    	Allow from all
    </Directory>

    Originally I did not have the <Directory /> section, but after looking at .htaccess it seemed like I needed it since it used just “/” (*i.e. root) as the base, and “/index.php”. And ever since I added that section to default-server.conf, SOME of the permalinks seem to be working, but definitely not all of them…

    In WordPress >> Dashboard >> Settings >> Permalinks, I tried the following:
    1st Try:

    Custom Structure = /%postname%/
    Category Base = courses

    2nd try and Current Settings:

    *Enabled the “Post name” Option
    *The next 2 options stayed the same:
    Custom Structure = /%postname%/
    Category Base = courses

    My .htaccess File currently contains the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Can anyone tell if there is something I am doing wrong?

    I have the LearnPress Plugin installed and when I try to navigate to one of the courses by going to: Dashboard >> LearnPress >> Courses >> My Test Course >> View… This takes me to –> https://myWordpress/courses/my-test-course&#8221;, but I get the “Oops! That page can’t be found” error.

    However, if I go to https://myWordpress/courses/&#8221;, it takes me to a page that lists all the current courses, seemingly as it’s supposed to.

    Can anyone tell me if I am missing something here?
    Any thoughts or suggestions would be GREATLY appreciated!

    Thanks in Advance,
    Matt

Viewing 1 replies (of 1 total)
  • Thread Starter mrm5102

    (@mrm5102)

    Got it Working!

    I was finally able to get this working, for now at least…

    I kept all the above settings the same, except for the Settings > Permalinks page…

    In the Permalinks settings page I changed it back to Custom structure, using: “/%category%/” as the Custom Structure, and I removed any/all text from inside the Category base textbox… And viola, it’s working now as expected!!

    -Matt

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks to Working for all Links’ is closed to new replies.