PDA

View Full Version : Work on a theme on the server



Peter Jonsson
December 15, 2012, 08:06 PM
Is it possible to install the flynax script on a subdomain so if i want to work
on a new theme or something i can do it there ?

I dont want to work on the script on my pc(dont even know if that is possible) as
i want to work on the same server the real site are installed on to be 100% that it will work.

Mike
December 17, 2012, 05:50 AM
Is it possible to install the flynax script on a subdomain so if i want to work
on a new theme or something i can do it there ?


Yes it's possible, you need to make changes to the .htaccess file to avoid problems with rewriting.


find code and add your subdomain



# wildcard request
#RewriteCond %{HTTP_HOST} ^((?!www\.|m\.|mobile\.|your_subdomain\.).*)\..+\.[^/]+$ [NC]
RewriteCond %{HTTP_HOST} ^((?!www\.|m\.|mobile\.|your_subdomain\.).*)\..+$ [NC] # FIRST LEVEL DOMAIN (localhost) USAGE
RewriteRule (.*) index.php?page=%1&wildcard&rlVareables=$1 [QSA,L]






I dont want to work on the script on my pc(dont even know if that is possible) as
i want to work on the same server the real site are installed on to be 100% that it will work.
You can also work locally on your pc without any problems, if it's just theme so feel free to work on your pc as it doesn't depend on any server enviroment.