Viewed   81 times

I'm using symfony in my local computer for programming. its address is http://localhost/RTL/web/app_dev.php/secure_area.

How can I change this address to http://localhost/secure_area?

I mean removing RTL/web/app_dev.php.

I'm using xampp, apache and symfony 2.6.

other addresses could be something like these:

http://localhost/RTL/web/app_dev.php/login    =>     http://localhost/login
http://localhost/RTL/web/app_dev.php/logout   =>     http://localhost/logout
http://localhost/RTL/web/app_dev.php/admin    =>     http://localhost/admin



Accordingly to the comments.

The RTL/web is removed adding the directive DocumentRoot "C:/xampp/htdocs/localhost/RTL/web" on your virtual host file in apache.

Then you can hide app.php using these apache mod_rewrite rules:

RewriteEngine On  
RewriteCond %{ENV:REDIRECT_STATUS} ^$  
RewriteRule ^app.php(/(.*)|$) %{CONTEXT_PREFIX}/$2 [R=301,L]
RewriteRule .? - [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ app.php [QSA,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::2$
RewriteRule ^(.*) - [E=BASE:%1]    
RewriteRule .? %{ENV:BASE}app.php [L]

then restart apache server to apply the modifications.

Saturday, December 24, 2022

Not really an answer to your question, but I wouldn't do this to myself. Apache's config file format isn't really built for stuff like this.

To me, having two separate htaccess files (like .htaccess and .htaccess.local, and controlling the local server through the AccessFileName directive:

AccessFileName .htaccess.local

is the best way to go.

If you really want to have everything in one file, it may be possible by using <IfDefine> blocks to separate local and live directives. You would have to set a define when starting your server locally, and could then test for the presence or non-presence of that define.

Monday, August 22, 2022

Go to wp-config.php, set WP_DEBUG to true and see what happens.

Tuesday, November 1, 2022

I don't know about underline, but for bold and italic there is "bolditalic". There is no mention of underline here:

Mind you that to use the mentioned bolditalic you need to, and I quote from that page

Must be one or more (separated by '|') of the following constant values.

so you'd use bold|italic

You could check this question for underline: Can I underline text in an android layout?

Friday, October 7, 2022

You could also set the RatingBar as indicator from the xml with the following:

Friday, September 2, 2022
Only authorized users can answer the search term. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :