Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache .htaccess export #44

Closed
mjauvin opened this issue Jan 23, 2020 · 3 comments
Closed

Apache .htaccess export #44

mjauvin opened this issue Jan 23, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@mjauvin
Copy link

mjauvin commented Jan 23, 2020

Hello,

I really like the idea of your plugin, but I have doubts about its performance versus Apache RewriteRule directives in .htaccess

How hard would it be to add a mode where the plugin would be used solely for maintaining rules and writing those as RewriteRules to the ".htaccess" file?

Thanks.

@adrenth
Copy link
Contributor

adrenth commented Jan 24, 2020

I really like the idea. I think I've seen it with a WordPress plugin. But first things first. I am very interested in seeing some benchmarks first.

@mjauvin
Copy link
Author

mjauvin commented Jan 24, 2020

We'd need an htaccess template so that the default htaccess provided by October would be preserved when re-generating the file.

@adrenth adrenth added the help wanted Extra attention is needed label Mar 5, 2020
@adrenth
Copy link
Contributor

adrenth commented Apr 16, 2020

Using Apache's mod_rewrite for some of the redirect types is possible, but it is not possible to have all redirects converted to RewriteCond's and RewriteRules. Some of them have conditions which cannot be checked using .htaccess file.

Also we have created the ability to create custom conditional redirects, using the Vdlp.RedirectConditions plugin. These redirects cannot be converted as well.

Think this is subject for a separate plugin though.

@adrenth adrenth closed this as completed Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants