• Resolved Ankit Singla

    (@aksingla)


    Dealing first time with multisite.. getting error —

    Parse error: syntax error, unexpected $end in /home/content/69/9355469/html/markedfortravel/wp-config.php on line 1

    I have edited the .htacess file rules as shown while setting up the network::

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) home/content/69/9355469/html/markedfortravel/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/content/69/9355469/html/markedfortravel/$2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    I have a domain http://www.markedfortravel.com mapped to directory in my deluxe hosting account, and .htaccess lies in markedfortravel directory where are wordpress files are.

    How do I move ahead now?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) home/content/69/9355469/html/markedfortravel/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/content/69/9355469/html/markedfortravel/$2 [L]

    That confuses me… It should be

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

    However this is not a htaccess error:

    Parse error: syntax error, unexpected $end in /home/content/69/9355469/html/markedfortravel/wp-config.php on line 1

    How did you edit the wp-config? In what text editor?

    Thread Starter Ankit Singla

    (@aksingla)

    Thanks Mika.

    I use Notepad++, and I really couldn’t see that $end in wp-config file.

    I will try with that Rewrite rules.
    But, as I could not move ahead before, I tried going to the alternate way of what I was doing.

    Now, I turned back from Multisite. — and created a new template instead of using the other theme in some sub-directory.
    (I will try my luck with multi-site later)

    But, now I have another issue generated —
    Now, I see the database, still contains some new tables for the sub-directory site, and some data in common tables of the main site.
    How do I remove all data of the new site from the database??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Easiest way to remove the data is to delete the site from the back end. That is go into WP network admin and elete it.

    Otherwise you can try dropping the tables and rows: http://wpmututorials.com/how-to/how-to-disable-multisite/

    Thread Starter Ankit Singla

    (@aksingla)

    Thanks a lot, that helped.

    I would try Multisite some other time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multisite troubleshoot – .htacess’ is closed to new replies.