I have to do this: "the .htaccess file should allow the following directives" `DirectoryIndex` `Deny` `Allow` `Options` `Order` `AddHandler` `RewriteEngine` `RewriteBase` `RewriteCond` `RewriteRule` But I have no clue where to start with this. If I read about the first one for example https://httpd.apache.org/docs/2.4/mod/mod_dir.html then the default value is `DirectoryIndex index.html`which I understand that it's looking first for an index.html file in the web root unless you tell otherwise, but what does this say about **allow** or not? Another one the `RewriteEngine` I have already the line `RewriteEbgine On` in my htaccess file, but again what does this say about **allow** …

Member Avatar
Member Avatar
+0 forum 12

how to remove the .php and .html from my file names. thnx

Member Avatar
Member Avatar
+0 forum 1

Hi I purchased windows hosting for php from Godaddy. But my .htaccess is not support in windows, so i have to use web.config for my redirection and hidding the filename extension. Can anyone please help me to fix the issue.

Member Avatar
Member Avatar
+0 forum 4

I have a few dozen links like: http://www.domain.com/publication?id=test http://www.domain.com/publication?id=test&tkn=25MMI7 http://www.domain.com/publication?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s I want to be able to redirect them to: http://www.domain.com/publication/?id=test http://www.domain.com/publication/?id=test&tkn=25MMI7 http://www.domain.com/publication/?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s How can I do this? Thank you.

Member Avatar
Member Avatar
+0 forum 1

hi all.. using .htaccess how to rewrite this http://mydomain/page-name/ to http://mydomain/page-name.html ? pls help me to solve this... tnx in advnc.

Member Avatar
Member Avatar
+0 forum 2

Hi All, Over the years I have smashed through God knows how many brick walls with `.htaccess`, and all I've learnt is don't even try to make it complicated as nothing is ever simple. I have therefore resorted in recent applications to using `mysite.com/index.php/category/sub-category/create/` etc. and PHP to get hold of the values. But this is avoiding a problem rather than solving it. For instance, the URL I am looking at now is: `daniweb.com/web-development/php/17/contribute`. How would I go about making this in `.htaccess` (or moreso how has Dani done it aha). I normally use this sort of setup: RewriteEngine On …

Member Avatar
Member Avatar
+0 forum 5

hi all... how to rewrite this url http://mydomain.com/cms.php?cms_id=about to http://mydomain.com/about without any error using .htaccess rewriterule. pls help me to solve this.. tnx in advnc...

Member Avatar
Member Avatar
+0 forum 4

I cant find solution for this problem so i hope someone of u can help When i set seo settings** Use URL rewriting = yes** in Joomla than my site crashes It must be **Use URL rewriting=yes** **How to make my joomla site user friendly with this problem?** this is in my htaccess file Begin - Joomla! core SEF Section. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] If the requested path and file is not /index.php and the request has not already been internally rewritten to the index.php script RewriteCond %{REQUEST_URI} !^/index\.php and the request is for something within the component folder, or …

Member Avatar
Member Avatar
+0 forum 13

Hi, I'm thinking of using the htaccess file on my apache server to add a layer of security to the payment processing on my site. I am considering the 2 actions below, not sure how yet, but thats where the trial & error & learning begins. 1. rewrite the url for the files that do the processing i.e. the user completes the payment form at `//mydomain/forms/form.php` On submit the form data is posted to `//mydomain/payment/form_process.php` to process the payment - connect to the payment exchange, make payment, write to Db, etc, etc. I'm hoping I can rewite `//mydomain/payment/form_process.php` to something …

Member Avatar
Member Avatar
+0 forum 6

I have a url that is `filemgr.php` when a user navigates to lower levels of said file manager it shows up as `filemgr.php#userfiles/username/Images` Is there a way to just have it show up as `filemgr.php ` with out the rest of the url showing? I am open to .htaccess editing and php code.

Member Avatar
Member Avatar
+0 forum 14

Dear All, This must be a very common problem, but yet nowhere on the internet wishes to display a working answer. I am in a sticky situation. I have the following .htaccess file on my local webserver: http://localhost/testsite/.htaccess DirectoryIndex home.php?view=home RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ home.php?view=$1 [QSA,L] ErrorDocument 404 /home.php?view=404 I now upload this file to http://domain.com/.htaccess and it simply will not work (404 errors). The URLs are meant to work like this: http://domain.com/gallery transforms server side to http://domain.com/home.php?view=gallery Please could someone suggest where my code may be going wrong and why? …

Member Avatar
Member Avatar
+0 forum 1

I keep trying to convert the web.config file from my old server to the new one, which is using Ubuntu server, but I can't get the things done right. Can you guys help me to convert the code bellow to .htaccess? <rewrite> <rules> <rule name="Rule IIS7"> <match url="^([a-zA-Z0-9-_.]+)(___)([0-9]+)(.*?)$" ignoreCase="false" /> <conditions> <add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="post.php?redir=1&amp;id={R:3}" appendQueryString="false" /> </rule> <rule name="Rule IIS7 2"> <match url="(.*?)(_\!__)([0-9]+)(.*?)$" ignoreCase="false" /> <conditions> <add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="links/cota_clicks.php?redir=1&amp;url={R:3}" appendQueryString="false" /> </rule> <rule name="Redirect …

Member Avatar
Member Avatar
+0 forum 3

Dear Programmers, I want to change accent characters in my smart URL to non-accent characters... For example : www.mysite.com/123/békítő to www.mysite.com/123/bekito. Is it possible through .htaccess? Here is my current .htaccess DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L] </IfModule> # Google Analytics Integration - Added by cPanel. <IfModule mod_substitute.c> AddOutputFilterByType SUBSTITUTE text/html Substitute "s|(<script src='/google_analytics_auto.js'></script>)?</head>|<script src='/google_analytics_auto.js'></script></head>|i" </IfModule> # END Google Analytics Integration Thanks in advance, Tibor

Member Avatar
Member Avatar
+0 forum 6

I have a blog with a domain that I moved to a new host and now it doesn't have SSL certificate installed on it. There are certain links to that domain that where bookmarked using https and now that SSL is not installed on the new server users who access the bookmark pages are sending me feedback that they are having error messages trying to access the website. I want to set up the account so that when those users click on the link in [url]https://www.domain.com/folder/file.php[/url] should redirect the user to the link [url]http://www.domain.com/folder/file.php[/url] instead Can someone kindly explain how …

Member Avatar
Member Avatar
+0 forum 2

[CODE] RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 [/CODE] my url = localhost/mvc/ i work on windows in xampp i have a problem when i go to my url /404 i thinks i am on localhost/ so it redirects me to localhost/xampp/splash.php but it will work if i write index.php/404

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm struggling to understand how to write script for Zeus web servers. I need to leverage browser cache images to get my Google page speed up. i know this is the code for .htaccess but Zeus is different: <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access plus 2 days" ExpiresByType image/gif "access plus 60 days" ExpiresByType image/jpg "access plus 60 days" ExpiresByType image/png "access plus 60 days" ExpiresByType application/x-javascript "access plus 60 days" ExpiresByType text/css "access plus 60 days" ExpiresByType image/x-icon "access plus 360 days" </IfModule> any ideas of what script needs to go in my rewrite.script file?

Member Avatar
+0 forum 0

I have a mobile site that the user gets automatically redirected to if they are trying to access the full site from a mobile device. I need them to be able to access the full site too, if they prefer. I have set a cookie in my htaccess file. What is the logic for saying it is ok for them to visit the full site if this cookie is set, if they are try to access it through the mobile site? [CODE] #redirect RewriteCond %{HTTP_HOST} !^m\.stage.sunjournal\.com$ RewriteCond %{HTTP_USER_AGENT} "android|iPhone|blackberry|ipad|iemobile|operamobile|palmos|webos|googlebot-mobile" [NC] RewriteRule ^(.*)$ http://m.stage.sunjournal.com/$1 [L,R=302,CO=mobile:yes:m.stage.sunjournal.com:30:/] RewriteCond %{HTTP_COOKIE} mobile=yes RewriteCond %{REQUEST_URI} !^stage.sunjournal.com …

Member Avatar
+0 forum 0

Hello all, How would I go about getting my site to redirect any visitor to [url]http://site.com[/url] rather than [url]http://www.site.com?[/url] I have searched the forums here and have tried various coding people have provided but none of it seems to work. Could someone maybe post a step by step guide on how to do this including code, where to put the code and server settings to allow it?

Member Avatar
Member Avatar
+0 forum 3

The End.