Сайт Yii не предоставляет правильный URL на localhost на MAMP - PullRequest
0 голосов
/ 01 мая 2020

Привет, я перемещаю свой сайт локально через MAMP pro, пытаясь улучшить некоторые изменения кода в localhost. После перемещения БД и папок я могу получить доступ к главной странице, но в URL не отображаются страницы. Просто покажите главную страницу, но внутренние ссылки не показывают страницы. Любая идея о том, что я должен делать ??

Это мой .htaccess на MAMP pro

ВАЖНО: Если у вас установлен веб-магазин в подпапке, то есть http://www.example.com/store

# change RewriteBase to include the subfolder name such as:  RewriteBase /mysiteexample

Options -MultiViews
RewriteEngine On
RewriteBase /mysite

Options +FollowSymLinks


# If you have additional files or folders in your web store folder, you may need to add them to the following RewriteCond so they are excluded
# from Web Store processing
RewriteCond $1 !^(index\.php|docs|soap\.php|test\.php|assets|photos|images|themes|css|js|favicon\.ico|robots\.txt)

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

# block all templates (no reason to have these exposed)
RedirectMatch 410 ^/.*\.tpl$ 

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch 410 ^.*\.(sql|log|conf)$ 

Нужно ли вместо этого настраивать параметры MAMP pro .htaccess?

Благодарим за любую помощь, заранее спасибо, Хуан

...