• Resolved blamervskiller

    (@blamervskiller)


    Hii,

    I Tried to remove index.php in my posts url

    My HomePage :- spot2get.com
    Products url :- spot2get.com/index.php/product-name

    I have found many posts based on this question . I tried every thing success rate is 0.

    So , i asked this question .`

    <strong>Details :–</strong>

    Using Ubuntu Hosting from Amazon AWS.

    web server Apache2

    My .htacess file

    # 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

    I typed this commant in my SSH

    ~$ sudo a2enmod rewrite
    Module rewrite already enabled

    I changed settings/permalinks
    from :- spot2get.com/index.php/%postname%/
    to :- spot2get.com/%postname%/
    Except Homepage nothing is working showing error

    I also visited wordpress using permalinks page i have not get anything

    please Help me to solve the issue

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi blamervskiller,
    Please take backup of your current .htaccess file and replace it with this code :

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

    YOUR_WP_FOLDER is the name of your root folder which contains wp-includes,wp-content,wp-admin

    Hope this will resolve your trouble.
    Looking forward to hear from you.

    Thanks

    Thread Starter blamervskiller

    (@blamervskiller)

    Thanks for your reply

    My root folders are this wp-includes,wp-content,wp-admin , so i change your_wp_folders to the wp-includes,wp-content,wp-admin

    i pasted after edited .htaccess code

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

    i tried to open the post it showing index.php and i edited the permalink it showing error check this image

    one more thank you for the reply

    Sorry… you get me slightly wrong.
    with YOUR_WP_FOLDER I mean parent folder of wp-includes,wp-content,wp-admin
    for example “wordpress” is the parent folder containing wp-includes,wp-content,wp-admin as their child folder. So the code be like :

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

    Hope this time your get me. Try this. Waiting for your reply.
    Thanks

    Thread Starter blamervskiller

    (@blamervskiller)

    Thanks for replying once again , i am very happy for your response.

    In html/ folder only their is no sub directory . even i tried in this way /var/www/html/ by changing the permalinks still same error .

    Thanks for the effort trying to answer for my reply

    Thread Starter blamervskiller

    (@blamervskiller)

    Finally i found the solution its because of url rewrite

    check this out have any issue like me

    https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-ubuntu-14-04

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issues with index.php’ is closed to new replies.